exception

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnspecifiedExceptionCode = ExcTypes(iota)
	UnhandledExceptionCode   ///< for unhandled 3rd party exceptions
	TimeoutExceptionCode     ///< timeout exceptions
	FileNotFoundExceptionCode
	ParseErrorExceptionCode
	InvalidArgExceptionCode
	KeyNotFoundExceptionCode
	BadCastExceptionCode
	OutOfRangeExceptionCode
	CanceledExceptionCode
	AssertExceptionCode

	EofExceptionCode
	StdExceptionCode
	InvalidOperationExceptionCode
	UnknownHostExceptionCode
	NullOptionalCode
	UdtErrorCode
	AesErrorCode
	OverflowCode
	UnderflowCode
	DivideByZeroCode
)

Variables

View Source
var AssertExceptionName = reflect.TypeOf(AssertException{}).Name()
View Source
var FcExceptionName = reflect.TypeOf(FcException{}).Name()
View Source
var StdExceptionName = reflect.TypeOf(StdException{}).Name()
View Source
var UnHandledExceptionName = reflect.TypeOf(UnHandledException{}).Name()

Functions

This section is empty.

Types

type AbiExceptions

type AbiExceptions interface {
	ChainExceptions
	AbiExceptions()
}

*

  • abi_exception

type ActionValidateExceptions

type ActionValidateExceptions interface {
	ChainExceptions
	ActionValidateExceptions()
}

*

  • action_validate_exception

type AssertException

type AssertException struct {
	Exception
	Elog log.Messages
}

func NewAssertException

func NewAssertException(parent Exception, message log.Message) *AssertException

func (*AssertException) AppendLog

func (e *AssertException) AppendLog(l log.Message)

func (AssertException) Callback

func (e AssertException) Callback(f interface{}) bool

func (AssertException) Code

func (e AssertException) Code() int64

func (AssertException) DetailMessage

func (e AssertException) DetailMessage() string

func (AssertException) GetLog

func (e AssertException) GetLog() log.Messages

func (AssertException) MarshalJSON

func (e AssertException) MarshalJSON() ([]byte, error)

func (AssertException) Name

func (e AssertException) Name() string

func (AssertException) String

func (e AssertException) String() string

func (AssertException) TopMessage

func (e AssertException) TopMessage() string

func (AssertException) What

func (e AssertException) What() string

type AuthorizationExceptions

type AuthorizationExceptions interface {
	ChainExceptions
	AuthorizationExceptions()
}

*

  • authorization_exception

type BlockLogExceptions

type BlockLogExceptions interface {
	ChainExceptions
	BlockLogExceptions()
}

*

  • block_log_exception

type BlockValidateExceptions

type BlockValidateExceptions interface {
	ChainExceptions
	BlockValidateExceptions()
}

*

  • block_validate_exception

type ChainExceptions

type ChainExceptions interface {
	Exception
	ChainExceptions()
}

type ChainTypeExceptions

type ChainTypeExceptions interface {
	ChainExceptions
	ChainTypeExceptions()
}

*

  • chain_type_exception

type ContractApiExceptions

type ContractApiExceptions interface {
	ChainExceptions
	ContractApiExceptions()
}

*

  • contract_api_exception

type ContractExceptions

type ContractExceptions interface {
	ChainExceptions
	ContractExceptions()
}

*

  • contract_exception

type ControllerEmitSignalExceptions

type ControllerEmitSignalExceptions interface {
	ChainExceptions
	ControllerEmitSignalExceptions()
}

*

  • controller_emit_signal_exception

type DatabaseExceptions

type DatabaseExceptions interface {
	ChainExceptions
	DatabaseExceptions()
}

*

  • database_exception

type DeadlineExceptions

type DeadlineExceptions interface {
	ResourceExhaustedExceptions
	DeadlineExceptions()
}

type ExcTypes

type ExcTypes = int64

type Exception

type Exception interface {
	Code() int64
	Name() string
	What() string

	AppendLog(l log.Message)
	GetLog() log.Messages

	TopMessage() string
	DetailMessage() string
	String() string
	MarshalJSON() ([]byte, error)

	Callback(f interface{}) bool
}

type FcException

type FcException struct {
	Exception
	Elog log.Messages
}

func NewFcException

func NewFcException(parent Exception, message log.Message) *FcException

func (*FcException) AppendLog

func (e *FcException) AppendLog(l log.Message)

func (FcException) Callback

func (e FcException) Callback(f interface{}) bool

func (FcException) Code

func (e FcException) Code() int64

func (FcException) DetailMessage

func (e FcException) DetailMessage() string

func (FcException) GetLog

func (e FcException) GetLog() log.Messages

func (FcException) MarshalJSON

func (e FcException) MarshalJSON() ([]byte, error)

func (FcException) Name

func (e FcException) Name() string

func (FcException) String

func (e FcException) String() string

func (FcException) TopMessage

func (e FcException) TopMessage() string

func (FcException) What

func (e FcException) What() string

type ForkDatabaseExceptions

type ForkDatabaseExceptions interface {
	ChainExceptions
	ForkDatabaseExceptions()
}

*

  • fork_database_exception

type GuardExceptions

type GuardExceptions interface {
	DatabaseExceptions
	GuardExceptions()
}

type HttpExceptions

type HttpExceptions interface {
	ChainExceptions
	HttpExceptions()
}

*

  • http_exception

type MiscExceptions

type MiscExceptions interface {
	ChainExceptions
	MiscExceptions()
}

*

  • misc_exception

type MongoDbExceptions

type MongoDbExceptions interface {
	ChainExceptions
	MongoDbExceptions()
}

*

  • mongo_db_exception

type PluginExceptions

type PluginExceptions interface {
	ChainExceptions
	PluginExceptions()
}

*

  • plugin_exception

type ProducerExceptions

type ProducerExceptions interface {
	ChainExceptions
	ProducerExceptions()
}

*

  • producer_exception

type ResourceExhaustedExceptions

type ResourceExhaustedExceptions interface {
	ChainExceptions
	ResourceExhaustedExceptions()
}

*

  • resource_exhausted_exception

type ResourceLimitExceptions

type ResourceLimitExceptions interface {
	ChainExceptions
	ResourceLimitExceptions()
}

*

  • resource_limit_exception

type ReversibleBlocksExceptions

type ReversibleBlocksExceptions interface {
	ChainExceptions
	ReversibleBlocksExceptions()
}

*

  • reversible_blocks_exception

type StdException

type StdException struct {
	Exception
	Elog log.Messages
}

func NewStdException

func NewStdException(parent Exception, message log.Message) *StdException

func (*StdException) AppendLog

func (e *StdException) AppendLog(l log.Message)

func (StdException) Callback

func (e StdException) Callback(f interface{}) bool

func (StdException) Code

func (e StdException) Code() int64

func (StdException) DetailMessage

func (e StdException) DetailMessage() string

func (StdException) GetLog

func (e StdException) GetLog() log.Messages

func (StdException) MarshalJSON

func (e StdException) MarshalJSON() ([]byte, error)

func (StdException) Name

func (e StdException) Name() string

func (StdException) String

func (e StdException) String() string

func (StdException) TopMessage

func (e StdException) TopMessage() string

func (StdException) What

func (e StdException) What() string

type TransactionExceptions

type TransactionExceptions interface {
	ChainExceptions
	TransactionExceptions()
}

*

  • transaction_exception

type UnHandledException

type UnHandledException struct {
	Exception
	Elog log.Messages
}

func NewUnHandledException

func NewUnHandledException(parent Exception, message log.Message) *UnHandledException

func (*UnHandledException) AppendLog

func (e *UnHandledException) AppendLog(l log.Message)

func (UnHandledException) Callback

func (e UnHandledException) Callback(f interface{}) bool

func (UnHandledException) Code

func (e UnHandledException) Code() int64

func (UnHandledException) DetailMessage

func (e UnHandledException) DetailMessage() string

func (UnHandledException) GetLog

func (e UnHandledException) GetLog() log.Messages

func (UnHandledException) MarshalJSON

func (e UnHandledException) MarshalJSON() ([]byte, error)

func (UnHandledException) Name

func (e UnHandledException) Name() string

func (UnHandledException) String

func (e UnHandledException) String() string

func (UnHandledException) TopMessage

func (e UnHandledException) TopMessage() string

func (UnHandledException) What

func (e UnHandledException) What() string

type WalletExceptions

type WalletExceptions interface {
	ChainExceptions
	WalletExceptions()
}

*

  • wallet_exception

type WasmExceptions

type WasmExceptions interface {
	ChainExceptions
	WasmExceptions()
}

*

  • wasm_exception

type WhitelistBlacklistExceptions

type WhitelistBlacklistExceptions interface {
	ChainExceptions
	WhitelistBlacklistExceptions()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL