Documentation ¶
Overview ¶
error instances
Provides a single instance of errors to allow easy comparison
Index ¶
- Variables
- func Critical(message string)
- func Criticalf(format string, arguments ...interface{})
- func Finalise()
- func Initialise()
- func IsErrExists(e error) bool
- func IsErrInvalid(e error) bool
- func IsErrLength(e error) bool
- func IsErrNotFound(e error) bool
- func IsErrProcess(e error) bool
- func IsErrRecord(e error) bool
- func Panic(message string)
- func PanicIfError(message string, err error)
- func PanicWithError(message string, err error)
- func Panicf(format string, arguments ...interface{})
- type ExistsError
- type GenericError
- type InvalidError
- type LengthError
- type NotFoundError
- type ProcessError
- type RecordError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyInitialised = ExistsError("already initialised") ErrAssetNotFound = NotFoundError("asset not found") ErrBlockNotFound = NotFoundError("block not found") ErrCannotDecodeAddress = RecordError("cannot decode address") ErrCertificateFileAlreadyExists = ExistsError("certificate file already exists") ErrCertificateNotFound = NotFoundError("certificate not found") ErrChecksumMismatch = ProcessError("checksum mismatch") ErrCountMismatch = ProcessError("count mismatch") ErrConnectingToSelfForbidden = ProcessError("connecting to self forbidden") ErrDescriptionTooLong = LengthError("name too long") ErrFingerprintTooLong = LengthError("fingerprint too long") ErrInsufficientPayment = InvalidError("insufficient payment") ErrInvalidBlock = InvalidError("invalid block") ErrInvalidBlockHeader = InvalidError("invalid block header") ErrInvalidCoinbase = InvalidError("invalid coinbase") ErrInvalidCount = InvalidError("invalid count") ErrInvalidCharacter = InvalidError("invalid character") ErrInvalidCurrency = InvalidError("invalid currency") ErrInvalidCursor = InvalidError("invalid cursor") ErrInvalidIPAddress = InvalidError("invalid IP Address") ErrInvalidKeyLength = InvalidError("invalid key length") ErrInvalidKeyType = InvalidError("invalid key type") ErrInvalidLength = InvalidError("invalid length") ErrInvalidLoggerChannel = InvalidError("invalid logger channel") ErrInvalidPortNumber = InvalidError("invalid port number") ErrInvalidSignature = InvalidError("invalid signature") ErrInvalidStructPointer = InvalidError("invalid struct pointer") ErrInvalidTransactionChain = InvalidError("invalid transaction chain") ErrInvalidType = InvalidError("invalid type") ErrInvalidVersion = InvalidError("invalid version") ErrKeyFileAlreadyExists = ExistsError("key file already exists") ErrKeyFileNotFound = NotFoundError("key file not found") ErrKeyNotFound = NotFoundError("key not found") ErrLinkNotFound = NotFoundError("link not found") ErrLinksToUnconfirmedTransaction = InvalidError("links to unconfirmed transaction") ErrMessagingTerminated = ProcessError("messaging terminated") ErrNameTooLong = LengthError("name too long") ErrNoPaymentToMiner = InvalidError("no payment to miner") ErrNotABitmarkPayment = InvalidError("not a bitmark payment") ErrNotAssetIndex = RecordError("not asset index") ErrNotCurrentOwner = RecordError("not current owner") ErrNotInitialised = NotFoundError("not initialised") ErrNotLink = RecordError("not link") ErrNotPublicKey = RecordError("not public key") ErrNotTransactionType = RecordError("not transaction type") ErrNotTransactionPack = RecordError("not transaction pack") ErrPaymentAddressMissing = NotFoundError("payment address missing") ErrPeerAlreadyExists = ExistsError("peer already exists") ErrPeerNotFound = NotFoundError("peer not found") ErrSignatureTooLong = LengthError("signature too long") ErrTransactionAlreadyExists = ExistsError("transaction already exists") ErrWrongNetworkForPublicKey = InvalidError("wrong network for public key") )
common errors - keep in alphabetic order
Functions ¶
func Criticalf ¶
func Criticalf(format string, arguments ...interface{})
Log a formatted string with arguments like fmt.Sprintf()
func IsErrInvalid ¶
func IsErrLength ¶
func IsErrNotFound ¶
func IsErrProcess ¶
func IsErrRecord ¶
Types ¶
type InvalidError ¶
type InvalidError GenericError
func (InvalidError) Error ¶
func (e InvalidError) Error() string
type LengthError ¶
type LengthError GenericError
func (LengthError) Error ¶
func (e LengthError) 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
type RecordError ¶
type RecordError GenericError
func (RecordError) Error ¶
func (e RecordError) Error() string
Click to show internal directories.
Click to hide internal directories.