Documentation ¶
Overview ¶
Package errors implements error handling in algobra.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct { Op Op // The operation causing the error Kind Kind // The kind of error Err error // The underlying error }
Error is the basic error object.
func New ¶
New creates a new error.
The message can contain formatting directives for the inputs in formatArgs.
type Kind ¶
type Kind uint8
Kind describes the kind of an error
const ( Inherit Kind = iota // Inherit kind when wrapping Input // General input error InputValue // Input has wrong "value" (e.g. not a monomial) InputIncompatible // Inputs incompatible with each other InputTooLarge // Input exceeds some upper bound ArithmeticIncompat // Objects not compatible for given operation Parsing // General parsing error Conversion // Conversion error Overflow // Overflow error Internal // Internal error )
Defined error kinds.
Click to show internal directories.
Click to hide internal directories.