Documentation ¶
Overview ¶
Package errors is a generated protocol buffer package.
It is generated from these files:
errors.proto
It has these top-level messages:
Exception
Index ¶
- Variables
- type Call
- type Code
- type CodedError
- 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) 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 (*Exception) XXX_MessageName() string
- type LacksSNativePermission
- type NestedCall
- type PermissionDenied
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 ¶
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 ErrorCodeInvalidString ErrorCodeEventMapping ErrorCodeInvalidAddress ErrorCodeDuplicateAddress ErrorCodeInsufficientFunds ErrorCodeOverpayment ErrorCodeZeroPayment ErrorCodeInvalidSequence ErrorCodeReservedAddress )
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"` }
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) GetException ¶
func (*Exception) ProtoMessage ¶
func (*Exception) ProtoMessage()
func (*Exception) XXX_MessageName ¶ added in v0.20.0
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 ¶
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
Click to show internal directories.
Click to hide internal directories.