{"modulePath":"github.com/certikfoundation/burrow","version":"v0.25.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Variables\n\n```go\nvar (\n\tErrInvalidLengthErrors = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowErrors   = fmt.Errorf(\"proto: integer overflow\")\n)\n```\n\n## Functions\n\n```go\nfunc FirstOnly() *singleError\n```\n\n## Types\n\n```go\ntype CallError struct {\n\t// The error from the original call which defines the overall error code\n\tCodedError\n\t// Errors from nested sub-calls of the original call that may have also occurred\n\tNestedErrors []NestedCallError\n}\n```\n\n```go\nfunc (err CallError) Error() string\n```\n\n```go\ntype Code uint32\n```\n\n```go\nconst (\n\tErrorCodeGeneric Code = iota\n\tErrorCodeUnknownAddress\n\tErrorCodeInsufficientBalance\n\tErrorCodeInvalidJumpDest\n\tErrorCodeInsufficientGas\n\tErrorCodeMemoryOutOfBounds\n\tErrorCodeCodeOutOfBounds\n\tErrorCodeInputOutOfBounds\n\tErrorCodeReturnDataOutOfBounds\n\tErrorCodeCallStackOverflow\n\tErrorCodeCallStackUnderflow\n\tErrorCodeDataStackOverflow\n\tErrorCodeDataStackUnderflow\n\tErrorCodeInvalidContract\n\tErrorCodeNativeContractCodeCopy\n\tErrorCodeExecutionAborted\n\tErrorCodeExecutionReverted\n\tErrorCodePermissionDenied\n\tErrorCodeNativeFunction\n\tErrorCodeEventPublish\n\tErrorCodeInvalidString\n\tErrorCodeEventMapping\n\tErrorCodeInvalidAddress\n\tErrorCodeDuplicateAddress\n\tErrorCodeInsufficientFunds\n\tErrorCodeOverpayment\n\tErrorCodeZeroPayment\n\tErrorCodeInvalidSequence\n\tErrorCodeReservedAddress\n\tErrorCodeIllegalWrite\n\tErrorCodeIntegerOverflow\n\tErrorCodeInvalidProposal\n\tErrorCodeExpiredProposal\n\tErrorCodeProposalExecuted\n\tErrorCodeNoInputPermission\n\tErrorCodeInvalidBlockNumber\n\tErrorCodeBlockNumberOutOfRange\n\tErrorCodeAlreadyVoted\n)\n```\n\n```go\nfunc (c Code) Error() string\n```\n\n```go\nfunc (c Code) ErrorCode() Code\n```\n\n```go\nfunc (c Code) String() string\n```\n\n```go\nfunc (c Code) Uint32() uint32\n```\n\n```go\ntype CodedError interface {\n\terror\n\tErrorCode() Code\n\tString() string\n}\n```\n\n```go\ntype Exception struct {\n\tCode                 Code     `protobuf:\"varint,1,opt,name=Code,proto3,casttype=Code\" json:\"Code,omitempty\"`\n\tException            string   `protobuf:\"bytes,2,opt,name=Exception,proto3\" json:\"Exception,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\n\n```go\nfunc AsException(err error) *Exception\n```\nWraps any error as a Exception\n\n```go\nfunc ErrorCodef(errorCode Code, format string, a ...interface{}) *Exception\n```\n\n```go\nfunc Errorf(format string, a ...interface{}) *Exception\n```\n\n```go\nfunc NewException(errorCode Code, exception string) *Exception\n```\n\n```go\nfunc Wrap(err error, message string) *Exception\n```\n\n```go\nfunc (e *Exception) AsError() error\n```\n\n```go\nfunc (*Exception) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (e *Exception) Equal(ce CodedError) bool\n```\n\n```go\nfunc (e *Exception) Error() string\n```\n\n```go\nfunc (e *Exception) ErrorCode() Code\n```\n\n```go\nfunc (m *Exception) GetCode() Code\n```\n\n```go\nfunc (m *Exception) GetException() string\n```\n\n```go\nfunc (m *Exception) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *Exception) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*Exception) ProtoMessage()\n```\n\n```go\nfunc (m *Exception) Reset()\n```\n\n```go\nfunc (m *Exception) Size() (n int)\n```\n\n```go\nfunc (e *Exception) String() string\n```\n\n```go\nfunc (m *Exception) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *Exception) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Exception) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *Exception) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*Exception) XXX_MessageName() string\n```\n\n```go\nfunc (m *Exception) XXX_Size() int\n```\n\n```go\nfunc (m *Exception) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype LacksSNativePermission struct {\n\tAddress crypto.Address\n\tSNative string\n}\n```\n\n```go\nfunc (e LacksSNativePermission) Error() string\n```\n\n```go\nfunc (e LacksSNativePermission) ErrorCode() Code\n```\n\n```go\ntype NestedCallError struct {\n\tCodedError\n\tCaller     crypto.Address\n\tCallee     crypto.Address\n\tStackDepth uint64\n}\n```\n\n```go\nfunc (err NestedCallError) Error() string\n```\n\n```go\ntype PermissionDenied struct {\n\tAddress crypto.Address\n\tPerm    permission.PermFlag\n}\n```\n\n```go\nfunc (err PermissionDenied) Error() string\n```\n\n```go\nfunc (err PermissionDenied) ErrorCode() Code\n```\n\n```go\ntype Provider interface {\n\t// Returns the an error if errors occurred some execution or nil if none occurred\n\tError() CodedError\n}\n```\n\n```go\ntype Sink interface {\n\tPushError(error)\n}\n```\n\n","path":"github.com/certikfoundation/burrow/execution/errors","name":"errors","synopsis":"","isRedistributable":true}
