Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallError ¶
type CallError struct { // The error from the original call which defines the overall error code CodedError // Errors from nested sub-calls of the original call that may have also occurred NestedErrors []NestedCallError }
type Code ¶
type Code uint32
const ( ErrorCodeGeneric Code = iota ErrorCodeUnknownAddress ErrorCodeInsufficientBalance ErrorCodeInvalidJumpDest ErrorCodeInsufficientGas ErrorCodeMemoryOutOfBounds ErrorCodeCodeOutOfBounds ErrorCodeInputOutOfBounds ErrorCodeReturnDataOutOfBounds ErrorCodeCallStackOverflow ErrorCodeCallStackUnderflow ErrorCodeDataStackOverflow ErrorCodeDataStackUnderflow ErrorCodeInvalidContract ErrorCodeNativeContractCodeCopy ErrorCodeExecutionAborted ErrorCodeExecutionReverted ErrorCodePermissionDenied ErrorCodeNativeFunction ErrorCodeEventPublish ErrorCodeInvalidString ErrorCodeEventMapping ErrorCodeInvalidAddress ErrorCodeDuplicateAddress ErrorCodeInsufficientFunds ErrorCodeOverpayment ErrorCodeZeroPayment ErrorCodeInvalidSequence ErrorCodeReservedAddress ErrorCodeIllegalWrite ErrorCodeIntegerOverflow ErrorCodeInvalidProposal ErrorCodeExpiredProposal ErrorCodeProposalExecuted ErrorCodeNoInputPermission ErrorCodeInvalidBlockNumber ErrorCodeBlockNumberOutOfRange ErrorCodeAlreadyVoted ErrorCodeUnresolvedSymbols )
type CodedError ¶
type Exception ¶
type Exception struct { Code Code `json:"Code,omitempty"` Exception string `json:"Exception,omitempty"` }
func ErrorCodef ¶
func NewException ¶
func (*Exception) Equal ¶
func (e *Exception) Equal(ce CodedError) bool
type NestedCallError ¶
type NestedCallError struct { CodedError Caller types.Address Callee types.Address StackDepth uint64 }
func (NestedCallError) Error ¶
func (err NestedCallError) Error() string
type Provider ¶
type Provider interface { // Returns the an error if errors occurred some execution or nil if none occurred Error() CodedError }
Click to show internal directories.
Click to hide internal directories.