fault

package
v0.0.0-...-3896d7e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: ISC Imports: 0 Imported by: 0

Documentation

Overview

error instances

Provides a single instance of errors to allow easy comparison

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAssetMetadataMustBeMap   = InvalidError("asset metadata must be map")
	ErrAssetRequestFail         = ProcessError("send asset request failed")
	ErrInvalidPrivateKey        = InvalidError("invalid private key")
	ErrInvalidSignature         = InvalidError("invalid signature")
	ErrKeyLength                = InvalidError("key length is invalid")
	ErrMakeIssueFail            = ProcessError("make issue failed")
	ErrMakeTransferFail         = ProcessError("make transfer failed")
	ErrNotFoundConfigFile       = NotFoundError("config file not found")
	ErrNotFoundIdentity         = NotFoundError("identity name not found")
	ErrPasswordLength           = InvalidError("password length is invalid")
	ErrProvenanceRequestFail    = InvalidError("provenance request failed")
	ErrRequiredAssetMetadata    = InvalidError("asset metadata is required")
	ErrRequiredAssetFingerprint = InvalidError("asset fingerprint is required")
	ErrRequiredAssetName        = InvalidError("asset name is required")
	ErrRequiredConfigFile       = InvalidError("config file is required")
	ErrRequiredConnect          = InvalidError("connect is required")
	ErrRequiredDescription      = InvalidError("description is required")
	ErrRequiredFileName         = InvalidError("file name is required")
	ErrRequiredIdentity         = InvalidError("identity is required")
	ErrRequiredPayId            = InvalidError("payment id is required")
	ErrRequiredPublicKey        = InvalidError("public key is required")
	ErrRequiredReceipt          = InvalidError("receipt id is required")
	ErrRequiredTransferTo       = InvalidError("transfer to is required")
	ErrRequiredTransferTxId     = InvalidError("transaction id is required")
	ErrUnableToRegenerateKeys   = InvalidError("unable to regenerate keys")
	ErrUnmarshalTextFail        = ProcessError("unmarshal text failed")
	ErrVerifiedPassword         = InvalidError("verified password is different")
	ErrWrongPassword            = InvalidError("wrong password")
)

common errors - keep in alphabetic order

Functions

func IsErrExists

func IsErrExists(e error) bool

determine the class of an error

func IsErrInvalid

func IsErrInvalid(e error) bool

func IsErrNotFound

func IsErrNotFound(e error) bool

func IsErrProcess

func IsErrProcess(e error) bool

Types

type ExistsError

type ExistsError GenericError

to allow for different classes of errors

func (ExistsError) Error

func (e ExistsError) Error() string

the error interface methods

type GenericError

type GenericError string

error base

func (GenericError) Error

func (e GenericError) Error() string

the error interface base method

type InvalidError

type InvalidError GenericError

func (InvalidError) Error

func (e InvalidError) Error() string

type NotFoundError

type NotFoundError GenericError

func (NotFoundError) Error

func (e NotFoundError) Error() string

type ProcessError

type ProcessError GenericError

func (ProcessError) Error

func (e ProcessError) Error() string

Jump to

Keyboard shortcuts

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