Documentation ¶
Index ¶
- Constants
- Variables
- func Errorf(s module.Status, format string, args ...interface{}) error
- func IsValid(e error) bool
- func New(s module.Status, m string) error
- func NewBase(s module.Status, msg string) error
- func StatusOf(e error) (module.Status, bool)
- func Validate(e error) error
- func WithStatus(e error, s module.Status) error
- func Wrap(e error, s module.Status, msg string) error
- func Wrapf(e error, s module.Status, format string, args ...interface{}) error
Constants ¶
View Source
const ( Success = errors.CodeSCORE + errors.Code(module.StatusSuccess) + iota UnknownFailureError ContractNotFoundError MethodNotFoundError MethodNotPayableError IllegalFormatError InvalidParameterError InvalidInstanceError InvalidContainerAccessError AccessDeniedError OutOfStepError OutOfBalanceError TimeoutError StackOverflowError SkipTransactionError InvalidPackageError RevertedError = errors.CodeSCORE + errors.Code(module.StatusReverted) )
View Source
const ( // InvalidRequestError is used by ICON InvalidRequestError = IllegalFormatError )
Variables ¶
View Source
var ( ErrUnknownFailure = errors.NewBase(UnknownFailureError, "UnknownFailure") ErrContractNotFound = errors.NewBase(ContractNotFoundError, "ContractNotFound") ErrMethodNotFound = errors.NewBase(MethodNotFoundError, "MethodNotFound") ErrMethodNotPayable = errors.NewBase(MethodNotPayableError, "MethodNotPayable") ErrIllegalFormat = errors.NewBase(IllegalFormatError, "IllegalFormat") ErrInvalidParameter = errors.NewBase(InvalidParameterError, "InvalidParameter") ErrInvalidInstance = errors.NewBase(InvalidInstanceError, "InvalidInstance") ErrInvalidContainerAccess = errors.NewBase(InvalidContainerAccessError, "InvalidContainerAccess") ErrAccessDenied = errors.NewBase(AccessDeniedError, "AccessDenied") ErrOutOfStep = errors.NewBase(OutOfStepError, "OutOfStep") ErrOutOfBalance = errors.NewBase(OutOfBalanceError, "OutOfBalance") ErrTimeout = errors.NewBase(TimeoutError, "Timeout") ErrStackOverflow = errors.NewBase(StackOverflowError, "StackOverflow") ErrSkipTransaction = errors.NewBase(SkipTransactionError, "SkipTransaction") ErrInvalidPackage = errors.NewBase(InvalidPackageError, "InvalidPackage") ErrReverted = errors.NewBase(RevertedError, "Reverted") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.