errs

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extend

func Extend(err error, message string) error

func IsValidationError added in v0.8.1

func IsValidationError(err error) bool

Types

type AccountBalanceError

type AccountBalanceError struct {
	// contains filtered or unexported fields
}

func NewAccountBalanceError

func NewAccountBalanceError(message string) *AccountBalanceError

func (AccountBalanceError) Error

func (a AccountBalanceError) Error() string

func (AccountBalanceError) Extend

func (a AccountBalanceError) Extend(s string) error

func (AccountBalanceError) Is added in v0.10.0

func (a AccountBalanceError) Is(target error) bool

type AliasTaken

type AliasTaken struct {
	ValidationErrorImpl
	// contains filtered or unexported fields
}

func NewAliasTaken

func NewAliasTaken(message string) *AliasTaken

func (AliasTaken) Error

func (a AliasTaken) Error() string

func (AliasTaken) Extend

func (a AliasTaken) Extend(s string) error

func (AliasTaken) Is added in v0.10.0

func (a AliasTaken) Is(target error) bool

type AssetIsNotReissuable

type AssetIsNotReissuable struct {
	ValidationErrorImpl
	// contains filtered or unexported fields
}

func NewAssetIsNotReissuable

func NewAssetIsNotReissuable(message string) *AssetIsNotReissuable

func (AssetIsNotReissuable) Error

func (a AssetIsNotReissuable) Error() string

func (AssetIsNotReissuable) Extend

func (a AssetIsNotReissuable) Extend(s string) error

func (AssetIsNotReissuable) Is added in v0.10.0

func (a AssetIsNotReissuable) Is(target error) bool

type AssetIssuedByOtherAddress

type AssetIssuedByOtherAddress struct {
	// contains filtered or unexported fields
}

func NewAssetIssuedByOtherAddress

func NewAssetIssuedByOtherAddress(message string) *AssetIssuedByOtherAddress

func (AssetIssuedByOtherAddress) Error

func (AssetIssuedByOtherAddress) Extend

func (a AssetIssuedByOtherAddress) Extend(message string) error

func (AssetIssuedByOtherAddress) Is added in v0.10.0

func (a AssetIssuedByOtherAddress) Is(target error) bool

type AssetUpdateInterval

type AssetUpdateInterval struct {
	// contains filtered or unexported fields
}

func NewAssetUpdateInterval

func NewAssetUpdateInterval(message string) *AssetUpdateInterval

func (AssetUpdateInterval) Error

func (a AssetUpdateInterval) Error() string

func (AssetUpdateInterval) Extend

func (a AssetUpdateInterval) Extend(message string) error

func (AssetUpdateInterval) Is added in v0.10.0

func (a AssetUpdateInterval) Is(target error) bool

type BlockValidationError added in v0.8.1

type BlockValidationError struct {
	ValidationErrorImpl
	// contains filtered or unexported fields
}

func NewBlockValidationError added in v0.8.1

func NewBlockValidationError(message string) *BlockValidationError

func (BlockValidationError) Error added in v0.8.1

func (a BlockValidationError) Error() string

type DuplicatedDataKeys

type DuplicatedDataKeys struct {
	// contains filtered or unexported fields
}

func NewDuplicatedDataKeys

func NewDuplicatedDataKeys(message string) *DuplicatedDataKeys

func (DuplicatedDataKeys) Error

func (a DuplicatedDataKeys) Error() string

func (DuplicatedDataKeys) Extend

func (a DuplicatedDataKeys) Extend(message string) error

func (DuplicatedDataKeys) Is added in v0.10.0

func (a DuplicatedDataKeys) Is(target error) bool

type EmptyDataKey

type EmptyDataKey struct {
	ValidationErrorImpl
	// contains filtered or unexported fields
}

func NewEmptyDataKey

func NewEmptyDataKey(message string) *EmptyDataKey

func (EmptyDataKey) Error

func (a EmptyDataKey) Error() string

func (EmptyDataKey) Extend

func (a EmptyDataKey) Extend(message string) error

func (EmptyDataKey) Is added in v0.10.0

func (a EmptyDataKey) Is(target error) bool

type FeeValidation

type FeeValidation struct {
	// contains filtered or unexported fields
}

func NewFeeValidation

func NewFeeValidation(message string) *FeeValidation

func (FeeValidation) Error

func (a FeeValidation) Error() string

func (FeeValidation) Extend

func (a FeeValidation) Extend(message string) error

func (FeeValidation) Is added in v0.10.0

func (a FeeValidation) Is(target error) bool

type IExtend

type IExtend interface {
	Extend(message string) error
}

type InvalidName

type InvalidName struct {
	// contains filtered or unexported fields
}

func NewInvalidName

func NewInvalidName(message string) *InvalidName

func (InvalidName) Error

func (a InvalidName) Error() string

func (InvalidName) Extend

func (a InvalidName) Extend(message string) error

func (InvalidName) Is added in v0.10.0

func (a InvalidName) Is(target error) bool

type Mistiming

type Mistiming struct {
	ValidationErrorImpl
	// contains filtered or unexported fields
}

func NewMistiming

func NewMistiming(message string) *Mistiming

func (Mistiming) Error

func (a Mistiming) Error() string

func (Mistiming) Extend

func (a Mistiming) Extend(message string) error

func (Mistiming) Is added in v0.10.0

func (a Mistiming) Is(target error) bool

type NonPositiveAmount

type NonPositiveAmount struct {
	// contains filtered or unexported fields
}

func NewNonPositiveAmount

func NewNonPositiveAmount(amount int64, of string) *NonPositiveAmount

func (NonPositiveAmount) Error

func (a NonPositiveAmount) Error() string

func (NonPositiveAmount) Is added in v0.10.0

func (a NonPositiveAmount) Is(target error) bool

type ToSelf

type ToSelf struct {
	// contains filtered or unexported fields
}

func NewToSelf

func NewToSelf(message string) *ToSelf

func (ToSelf) Error

func (a ToSelf) Error() string

func (ToSelf) Extend

func (a ToSelf) Extend(s string) error

func (ToSelf) Is added in v0.10.0

func (a ToSelf) Is(target error) bool

type TooBigArray

type TooBigArray struct {
	// contains filtered or unexported fields
}

func NewTooBigArray

func NewTooBigArray(message string) *TooBigArray

func (TooBigArray) Error

func (a TooBigArray) Error() string

func (TooBigArray) Extend

func (a TooBigArray) Extend(message string) error

func (TooBigArray) Is added in v0.10.0

func (a TooBigArray) Is(target error) bool

type TransactionNotAllowedByScript

type TransactionNotAllowedByScript struct {
	// contains filtered or unexported fields
}

func NewTransactionNotAllowedByScript

func NewTransactionNotAllowedByScript(message string, asset []byte) *TransactionNotAllowedByScript

func (TransactionNotAllowedByScript) Asset

func (a TransactionNotAllowedByScript) Asset() []byte

func (TransactionNotAllowedByScript) Error

func (TransactionNotAllowedByScript) Extend

func (a TransactionNotAllowedByScript) Extend(message string) error

func (TransactionNotAllowedByScript) Is added in v0.10.0

func (TransactionNotAllowedByScript) IsAssetScript

func (a TransactionNotAllowedByScript) IsAssetScript() bool

type TxValidationError

type TxValidationError struct {
	ValidationErrorImpl
	// contains filtered or unexported fields
}

TxValidationError provides message as is, without adding additional message info.

func NewTxValidationError

func NewTxValidationError(message string) *TxValidationError

func (TxValidationError) Error

func (a TxValidationError) Error() string

func (TxValidationError) Extend

func (a TxValidationError) Extend(s string) error

func (TxValidationError) Is added in v0.10.0

func (a TxValidationError) Is(target error) bool

type UnknownAsset

type UnknownAsset struct {
	// contains filtered or unexported fields
}

func NewUnknownAsset

func NewUnknownAsset(message string) *UnknownAsset

func (UnknownAsset) Error

func (a UnknownAsset) Error() string

func (UnknownAsset) Extend

func (a UnknownAsset) Extend(message string) error

func (UnknownAsset) Is added in v0.10.0

func (a UnknownAsset) Is(target error) bool

type ValidationError added in v0.8.1

type ValidationError interface {
	ValidationError()
}

type ValidationErrorImpl added in v0.8.1

type ValidationErrorImpl struct {
}

func (ValidationErrorImpl) ValidationError added in v0.8.1

func (ValidationErrorImpl) ValidationError()

Jump to

Keyboard shortcuts

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