-
Notifications
You must be signed in to change notification settings - Fork 199
/
errors.go
20 lines (15 loc) · 1.08 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package blockAPI
import "errors"
// ErrInvalidOutputFormat signals that the output format type is not valid
var ErrInvalidOutputFormat = errors.New("the output format type is invalid")
// ErrShardOnlyEndpoint signals that an endpoint was called, but it is only available for shard nodes
var ErrShardOnlyEndpoint = errors.New("the endpoint is only available on shard nodes")
// ErrMetachainOnlyEndpoint signals that an endpoint was called, but it is only available for metachain nodes
var ErrMetachainOnlyEndpoint = errors.New("the endpoint is only available on metachain nodes")
var errCannotLoadMiniblocks = errors.New("cannot load miniblock(s)")
var errCannotUnmarshalMiniblocks = errors.New("cannot unmarshal miniblock(s)")
var errCannotLoadTransactions = errors.New("cannot load transaction(s)")
var errCannotUnmarshalTransactions = errors.New("cannot unmarshal transaction(s)")
var errCannotLoadReceipts = errors.New("cannot load receipt(s)")
var errCannotUnmarshalReceipts = errors.New("cannot unmarshal receipt(s)")
var errUnknownBlockRequestType = errors.New("unknown block request type")