coreerrors

package
v0.7.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScName        = "errors"
	ScDescription = "Errors Contract"
	HScName       = wasmtypes.ScHname(0x8f3a8bb3)
)
View Source
const (
	ParamErrorCode = "c"
	ParamTemplate  = "m"
)
View Source
const (
	ResultErrorCode = "c"
	ResultTemplate  = "m"
)
View Source
const (
	FuncRegisterError         = "registerError"
	ViewGetErrorMessageFormat = "getErrorMessageFormat"
)
View Source
const (
	HFuncRegisterError         = wasmtypes.ScHname(0x9be65f8e)
	HViewGetErrorMessageFormat = wasmtypes.ScHname(0x63fe7d56)
)

Variables

This section is empty.

Functions

func OnDispatch

func OnDispatch(index int32) *wasmlib.ScExportMap

Types

type Funcs

type Funcs struct{}
var ScFuncs Funcs

func (Funcs) GetErrorMessageFormat

func (sc Funcs) GetErrorMessageFormat(ctx wasmlib.ScViewClientContext) *GetErrorMessageFormatCall

Returns the message template stored for a given error code.

func (Funcs) RegisterError

func (sc Funcs) RegisterError(ctx wasmlib.ScFuncClientContext) *RegisterErrorCall

Registers an error message template. note that this function must be call()ed

type GetErrorMessageFormatCall

type GetErrorMessageFormatCall struct {
	Func    *wasmlib.ScView
	Params  MutableGetErrorMessageFormatParams
	Results ImmutableGetErrorMessageFormatResults
}

type ImmutableGetErrorMessageFormatParams

type ImmutableGetErrorMessageFormatParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableGetErrorMessageFormatParams

func NewImmutableGetErrorMessageFormatParams() ImmutableGetErrorMessageFormatParams

func (ImmutableGetErrorMessageFormatParams) ErrorCode

serialized error code

type ImmutableGetErrorMessageFormatResults

type ImmutableGetErrorMessageFormatResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetErrorMessageFormatResults) Template

error message template string

type ImmutableRegisterErrorParams

type ImmutableRegisterErrorParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableRegisterErrorParams

func NewImmutableRegisterErrorParams() ImmutableRegisterErrorParams

func (ImmutableRegisterErrorParams) Template

error message template string

type ImmutableRegisterErrorResults

type ImmutableRegisterErrorResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableRegisterErrorResults) ErrorCode

serialized error code

type MutableGetErrorMessageFormatParams

type MutableGetErrorMessageFormatParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableGetErrorMessageFormatParams) ErrorCode

serialized error code

type MutableGetErrorMessageFormatResults

type MutableGetErrorMessageFormatResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetErrorMessageFormatResults

func NewMutableGetErrorMessageFormatResults() MutableGetErrorMessageFormatResults

func (MutableGetErrorMessageFormatResults) Template

error message template string

type MutableRegisterErrorParams

type MutableRegisterErrorParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableRegisterErrorParams) Template

error message template string

type MutableRegisterErrorResults

type MutableRegisterErrorResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableRegisterErrorResults

func NewMutableRegisterErrorResults() MutableRegisterErrorResults

func (MutableRegisterErrorResults) ErrorCode

serialized error code

type RegisterErrorCall

type RegisterErrorCall struct {
	Func    *wasmlib.ScFunc
	Params  MutableRegisterErrorParams
	Results ImmutableRegisterErrorResults
}

Jump to

Keyboard shortcuts

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