Documentation ¶
Index ¶
- Variables
- func ErrorCausedBy(err error, cause error) bool
- func Errorf(format string, a ...interface{}) error
- func New(message string) error
- func SetGenerateStackTraces(generate bool)
- func Wrap(cause error, message string) error
- func Wrapf(cause error, format string, a ...interface{}) error
- type AlphabillError
- type AlphabillErrorType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidArgument = newErrorType("invalid argument") ErrInvalidState = newErrorType("invalid state") ErrInvalidHashField = newErrorType("invalid hash field descriptor") ErrSerDesFailed = newErrorType("(de)serialization failure") ErrVerificationFailed = newErrorType("verification failed") ErrVerificationInconsistent = newErrorType("verification inconsistent") ErrTimeout = newErrorType("timeout") ErrPermissionDenied = newErrorType("permission denied") ErrCancelled = newErrorType("cancelled") ErrInconsistentData = newErrorType("inconsistent data") ErrCriticalError = newErrorType("critical error") ErrInsufficientData = newErrorType("insufficient data") ErrOutOfSequence = newErrorType("out of sequence") ErrBufferOverflow = newErrorType("buffer overflow") ErrEOS = newErrorType("end of stream") ErrFileNotFound = newErrorType("file not found") ErrNotImplemented = newErrorType("not implemented") )
Functions ¶
func ErrorCausedBy ¶
ErrorCausedBy checks if any error in error queue matches the given error
func Errorf ¶
Errorf Creates a simple error from a format and arguments The error will also have a stack trace if enabled using errors.SetGenerateStackTraces(generate bool)
func New ¶
New Creates a simple error with message The error will also have a stack trace if enabled using errors.SetGenerateStackTraces(generate bool)
func SetGenerateStackTraces ¶
func SetGenerateStackTraces(generate bool)
SetGenerateStackTraces Set whether to generate stack traces for errors or not
Types ¶
type AlphabillError ¶
type AlphabillError struct {
// contains filtered or unexported fields
}
AlphabillError is errors specific to Alphabill logic.
func (*AlphabillError) Error ¶
func (e *AlphabillError) Error() string
func (*AlphabillError) Message ¶
func (e *AlphabillError) Message() string
func (*AlphabillError) Unwrap ¶
func (e *AlphabillError) Unwrap() error
type AlphabillErrorType ¶
type AlphabillErrorType struct {
// contains filtered or unexported fields
}
AlphabillErrorType If necessary we can add error codes etc. to this type later on
func FindErrorType ¶
func FindErrorType(err error) *AlphabillErrorType
func (*AlphabillErrorType) Error ¶
func (e *AlphabillErrorType) Error() string
Click to show internal directories.
Click to hide internal directories.