Documentation ¶
Index ¶
- Variables
- func FirstOnly() *singleError
- type CallError
- type Code
- type CodedError
- type Exception
- func (e *Exception) AsError() error
- func (*Exception) Descriptor() ([]byte, []int)
- func (e *Exception) Equal(ce CodedError) bool
- func (e *Exception) Error() string
- func (e *Exception) ErrorCode() Code
- func (m *Exception) GetCode() Code
- func (m *Exception) GetException() string
- func (m *Exception) Marshal() (dAtA []byte, err error)
- func (m *Exception) MarshalTo(dAtA []byte) (int, error)
- func (*Exception) ProtoMessage()
- func (m *Exception) Reset()
- func (m *Exception) Size() (n int)
- func (e *Exception) String() string
- func (m *Exception) Unmarshal(dAtA []byte) error
- func (m *Exception) XXX_DiscardUnknown()
- func (m *Exception) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Exception) XXX_Merge(src proto.Message)
- func (*Exception) XXX_MessageName() string
- func (m *Exception) XXX_Size() int
- func (m *Exception) XXX_Unmarshal(b []byte) error
- type LacksSNativePermission
- type NestedCallError
- type PermissionDenied
- type Provider
- type Sink
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthErrors = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowErrors = fmt.Errorf("proto: integer overflow") )
Functions ¶
Types ¶
type CallError ¶ added in v0.23.0
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 )
type CodedError ¶
type Exception ¶
type Exception struct { Code Code `protobuf:"varint,1,opt,name=Code,proto3,casttype=Code" json:"Code,omitempty"` Exception string `protobuf:"bytes,2,opt,name=Exception,proto3" json:"Exception,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func AsException ¶ added in v0.20.0
Wraps any error as a Exception
func ErrorCodef ¶
func NewException ¶ added in v0.20.1
func (*Exception) Descriptor ¶
func (*Exception) Equal ¶ added in v0.23.0
func (e *Exception) Equal(ce CodedError) bool
func (*Exception) GetException ¶
func (*Exception) ProtoMessage ¶
func (*Exception) ProtoMessage()
func (*Exception) XXX_DiscardUnknown ¶
func (m *Exception) XXX_DiscardUnknown()
func (*Exception) XXX_Marshal ¶
func (*Exception) XXX_MessageName ¶ added in v0.20.0
func (*Exception) XXX_Unmarshal ¶
type LacksSNativePermission ¶
func (LacksSNativePermission) Error ¶
func (e LacksSNativePermission) Error() string
func (LacksSNativePermission) ErrorCode ¶
func (e LacksSNativePermission) ErrorCode() Code
type NestedCallError ¶ added in v0.23.0
type NestedCallError struct { CodedError Caller crypto.Address Callee crypto.Address StackDepth uint64 }
func (NestedCallError) Error ¶ added in v0.23.0
func (err NestedCallError) Error() string
type PermissionDenied ¶
type PermissionDenied struct { Address crypto.Address Perm permission.PermFlag }
func (PermissionDenied) Error ¶
func (err PermissionDenied) Error() string
func (PermissionDenied) ErrorCode ¶
func (err PermissionDenied) ErrorCode() Code
type Provider ¶ added in v0.23.0
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.