Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExitCoder ¶
type ExitCoder interface {
ExitCode() int
}
ExitCoder is implemented by errors that carry a specific exit code.
type TestFailureError ¶
type TestFailureError struct {
Details string
}
TestFailureError represents a test/assertion failure (exit code 2).
func (*TestFailureError) Error ¶
func (e *TestFailureError) Error() string
func (*TestFailureError) ExitCode ¶
func (e *TestFailureError) ExitCode() int
type ValidationError ¶
ValidationError represents a user/config error (exit code 1). It records the source file, the missing or invalid field, and a human-readable message.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
func (*ValidationError) ExitCode ¶
func (e *ValidationError) ExitCode() int
type ValidationErrors ¶
type ValidationErrors struct {
Errs []*ValidationError
}
ValidationErrors collects multiple validation errors into a single error.
func (*ValidationErrors) Error ¶
func (e *ValidationErrors) Error() string
func (*ValidationErrors) ExitCode ¶
func (e *ValidationErrors) ExitCode() int
func (*ValidationErrors) Unwrap ¶
func (e *ValidationErrors) Unwrap() []error
Unwrap returns the individual errors for errors.As support.
Click to show internal directories.
Click to hide internal directories.