Documentation
¶
Overview ¶
Package serrors contains all custom error types
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrAlreadySet = fmt.Errorf("value already set")
ErrAlreadySet is a custom error when a value is already set and cannot be overwritten
var ErrAtLeastOne = fmt.Errorf("at least one value is required")
ErrAtLeastOne is a custom error when a slice requires at least one entry this error may be returned when at least filter is required for a query
var ErrDependencyMissing = fmt.Errorf("required dependency failed")
ErrDependencyMissing is the error when a dependency fails to create
var ErrEmptyEnum = fmt.Errorf("unknown not allowed")
ErrEmptyEnum is a custom error when an enum value is the zero value this error is generally returned when an enum provided is that enum zero value and not allowed
var ErrEmptyString = fmt.Errorf("string cannot be empty")
ErrEmptyString is a custom error when an empty string is passed and is not valid this error is generally returned when a string parameter cannot be empty
var ErrInUse = fmt.Errorf("in use")
ErrInUse is a custom error when a resource is in use this error is generally returned when attempting to delete a Status entry when it is in use by an Item
var ErrInvalidData = fmt.Errorf("invalid data")
ErrInvalidData is a custom error when data is in a corrupt state this error is generally returned when data is a store is invalid or corrupt for some reason this should be treated with urgency
var ErrInvalidPassword = fmt.Errorf("invalid password")
ErrInvalidPassword is the error when a password is invalid
var ErrMissingCredentials = fmt.Errorf("missing credentials")
ErrMissingCredentials is the error when something expects credentials (i.e. a database connection string or api call)
var ErrMissingTimestamp = fmt.Errorf("timestamp required")
ErrMissingTimestamp is the error when a Timestamp specific field is required
var ErrNilVal = fmt.Errorf("nil not allowed")
ErrNilVal is a custom error when a nil value is not allowed this error is generally returned when a function disallows a nil value
var ErrNotFound = fmt.Errorf("not found")
ErrNotFound is a custom error when a value is not found this error is generally returned when the system is unable to find some resource
var ErrNotImplemented = fmt.Errorf("not implemented")
ErrNotImplemented is a custom error when an interface function has not been implemented
ErrStoreUnavailable is a custom error when a store is unavailable this error is generally returned when a data store is not available at request time
var ErrUnexpectedRows = fmt.Errorf("unexpected rows affect")
ErrUnexpectedRows is the error when a db query affects more rows than expected
var ErrUnrecoverable = fmt.Errorf("unrecoverable")
ErrUnrecoverable is the error when something has ABENDed in an unsafe to continue way
Functions ¶
Types ¶
This section is empty.