Documentation
¶
Index ¶
- func CouldntReadError(path string, err error)
- func CouldntWriteError(path string, err error)
- func ExecError(cmd *exec.Cmd, out string, err error)
- func GenericError(msg string, specified interface{}, actual interface{}) (int, string, error)
- func IndexError(msg string, i int, slc interface{})
- func PathError(path string, err error, action string)
- func ReflectError(value interface{}, expectedKind reflect.Kind, funcName string)
- func Success() (int, string, error)
- type ParameterLengthError
- type ParameterTypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CouldntReadError ¶
CouldntReadError logs.Fatal an error related to reading a file
func CouldntWriteError ¶
CouldntWriteError logs.Fatal an error relating to writing a file
func ExecError ¶
ExecError logs.Fatal with a useful message for errors that occur when using os/exec to run commands
func GenericError ¶
GenericError is a general error where the requested variable was not found in a given list of variables. This is pure DRY.
func IndexError ¶
IndexError logs a message about an attempt to access an array element outside the range of a given list
func ReflectError ¶
ReflectError logs a message about a failure of types during reflection
Types ¶
type ParameterLengthError ¶
ParameterLengthError is the type of error a Check raises when it recieves the incorrect number of parameters.
func (ParameterLengthError) Error ¶
func (e ParameterLengthError) Error() string
type ParameterTypeError ¶
type ParameterTypeError struct{ Parameter, Expected string }
ParameterTypeError is the type of error a Check returns when it can't parse its parameters as their expected types.
func (ParameterTypeError) Error ¶
func (e ParameterTypeError) Error() string