Documentation ¶
Overview ¶
Package oakerr stores errors returned throughout oak. It is currently a little bare-bones.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsError ¶
type ConsError struct {
First, Second error
}
ConsError is returned by specific functions that can coalesce errors over a series of inputs.
type ExistingElement ¶
ExistingElement is an alternative to ExistingFont, where in this case the existing element is -not- overwritten.
func (ExistingElement) Error ¶
func (ee ExistingElement) Error() string
type IndivisibleInput ¶
IndivisibleInput is returned from functions expecting a count of inputs in a slice or variadic argument divisible by some integer, or an integer value divisible by some integer. IsList represents which input type was expected.
func (IndivisibleInput) Error ¶
func (ii IndivisibleInput) Error() string
type InsufficientInputs ¶ added in v1.4.0
InsufficientInputs is returned when something requires at least some number of inputs in a variadic argument, but that minimum was not supplied.
func (InsufficientInputs) Error ¶ added in v1.4.0
func (ii InsufficientInputs) Error() string
type InvalidInput ¶
type InvalidInput struct {
InputName string
}
InvalidInput is a generic struct returned for otherwise invalid input.
func (InvalidInput) Error ¶
func (ii InvalidInput) Error() string
type InvalidLength ¶
InvalidLength is returned when some input has an explicit required length that was not provided.
func (InvalidLength) Error ¶
func (il InvalidLength) Error() string
type NilInput ¶
type NilInput struct {
InputName string
}
NilInput is returned from functions expecting a non-nil pointer which receive a nil pointer.
type NotFound ¶
type NotFound struct {
InputName string
}
NotFound is returned when some input was queried but not found.
type UnsupportedFormat ¶
type UnsupportedFormat struct {
Format string
}
UnsupportedFormat is returned by functions expecting formatted data or files which received a format they can't use.
func (UnsupportedFormat) Error ¶
func (uf UnsupportedFormat) Error() string
type UnsupportedPlatform ¶
type UnsupportedPlatform struct {
Operation string
}
UnsupportedPlatform is returned when functionality isn't supported on the hardware or operating system used.
func (UnsupportedPlatform) Error ¶
func (up UnsupportedPlatform) Error() string