Versions in this module Expand all Collapse all v0 v0.60.1 Sep 27, 2024 Changes in this version + var ErrBadArgument = RegisterError(400, "bad argument", false, "request is malformed") + var ErrBadGateway = RegisterError(502, "bad gateway", true, "return when the node is unreachable") + var ErrCodec = RegisterError(3, "encode/decode error", true, ...) + var ErrInternal = RegisterError(500, "internal error", false, ...) + var ErrInterpreting = RegisterError(9, "error interpreting data from node", false, ...) + var ErrInvalidAddress = RegisterError(7, "invalid address", false, "returned when the address is malformed") + var ErrInvalidMemo = RegisterError(11, "invalid memo", false, "returned when the memo is invalid") + var ErrInvalidOperation = RegisterError(4, "invalid operation", false, "returned when the operation is not valid") + var ErrInvalidPubkey = RegisterError(8, "invalid pubkey", false, "returned when the public key is invalid") + var ErrInvalidTransaction = RegisterError(5, "invalid transaction", false, "returned when the transaction is invalid") + var ErrNetworkNotSupported = RegisterError(2, "network is not supported", false, ...) + var ErrNotFound = RegisterError(404, "not found", true, ...) + var ErrNotImplemented = RegisterError(14, "not implemented", false, ...) + var ErrOffline = RegisterError(1, "cannot query endpoint in offline mode", false, ...) + var ErrUnknown = RegisterError(0, "unknown", false, "unknown error") + var ErrUnsupportedCurve = RegisterError(15, "unsupported curve, expected secp256k1", false, ...) + func ListErrors() []*types.Error + func SealAndListErrors() []*types.Error + func ToRosetta(err error) *types.Error + type Error struct + func FromGRPCToRosettaError(err error) *Error + func RegisterError(code int32, message string, retryable bool, description string) *Error + func WrapError(err *Error, msg string) *Error + func (e *Error) Error() string + func (e *Error) Is(err error) bool