scoreresult

package
v0.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

func Errorf

func Errorf(s module.Status, format string, args ...interface{}) error

func IsValid

func IsValid(e error) bool

func New

func New(s module.Status, m string) error

func NewBase

func NewBase(s module.Status, msg string) error

func StatusOf

func StatusOf(e error) (module.Status, bool)

func Validate

func Validate(e error) error

func WithStatus

func WithStatus(e error, s module.Status) error

func Wrap

func Wrap(e error, s module.Status, msg string) error

func Wrapf

func Wrapf(e error, s module.Status, format string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL