Documentation ¶
Index ¶
- type Call
- type Code
- type CodedError
- type ErrorCode
- func (*ErrorCode) Descriptor() ([]byte, []int)
- func (m *ErrorCode) GetCode() uint32
- func (e ErrorCode) MarshalJSON() ([]byte, error)
- func (*ErrorCode) ProtoMessage()
- func (m *ErrorCode) Reset()
- func (m *ErrorCode) String() string
- func (e *ErrorCode) UnmarshalJSON(bs []byte) error
- func (m *ErrorCode) XXX_DiscardUnknown()
- func (m *ErrorCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ErrorCode) XXX_Merge(src proto.Message)
- func (m *ErrorCode) XXX_Size() int
- func (m *ErrorCode) XXX_Unmarshal(b []byte) error
- type Exception
- func (e *Exception) AsError() error
- func (*Exception) Descriptor() ([]byte, []int)
- func (e *Exception) Error() string
- func (e *Exception) ErrorCode() Code
- func (m *Exception) GetBS() []byte
- func (m *Exception) GetCode() *ErrorCode
- func (m *Exception) GetException() string
- func (*Exception) ProtoMessage()
- func (m *Exception) Reset()
- func (m *Exception) String() string
- func (m *Exception) XXX_DiscardUnknown()
- func (m *Exception) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Exception) XXX_Merge(src proto.Message)
- func (m *Exception) XXX_Size() int
- func (m *Exception) XXX_Unmarshal(b []byte) error
- type LacksSNativePermission
- type NestedCall
- type PermissionDenied
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call struct { CallError CodedError NestedErrors []NestedCall }
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 )
type CodedError ¶
func ErrorCodef ¶
func ErrorCodef(errorCode Code, format string, a ...interface{}) CodedError
func Errorf ¶
func Errorf(format string, a ...interface{}) CodedError
type ErrorCode ¶
type ErrorCode struct { Code uint32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewErrorCode ¶
func (*ErrorCode) Descriptor ¶
func (ErrorCode) MarshalJSON ¶
func (*ErrorCode) ProtoMessage ¶
func (*ErrorCode) ProtoMessage()
func (*ErrorCode) UnmarshalJSON ¶
func (*ErrorCode) XXX_DiscardUnknown ¶
func (m *ErrorCode) XXX_DiscardUnknown()
func (*ErrorCode) XXX_Marshal ¶
func (*ErrorCode) XXX_Unmarshal ¶
type Exception ¶
type Exception struct { Code *ErrorCode `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"` Exception string `protobuf:"bytes,2,opt,name=Exception,proto3" json:"Exception,omitempty"` BS []byte `protobuf:"bytes,3,opt,name=BS,proto3" json:"BS,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewCodedError ¶
func Wrap ¶
func Wrap(err CodedError, message string) *Exception
func (*Exception) Descriptor ¶
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_Unmarshal ¶
type LacksSNativePermission ¶
func (LacksSNativePermission) Error ¶
func (e LacksSNativePermission) Error() string
func (LacksSNativePermission) ErrorCode ¶
func (e LacksSNativePermission) ErrorCode() Code
type NestedCall ¶
type NestedCall struct { NestedError CodedError Caller crypto.Address Callee crypto.Address StackDepth uint64 }
func (NestedCall) Error ¶
func (err NestedCall) Error() string
func (NestedCall) ErrorCode ¶
func (err NestedCall) ErrorCode() Code
type PermissionDenied ¶
func (PermissionDenied) Error ¶
func (err PermissionDenied) Error() string
func (PermissionDenied) ErrorCode ¶
func (err PermissionDenied) ErrorCode() Code
Click to show internal directories.
Click to hide internal directories.