Files
step/error.go

27 lines
958 B
Go
Raw Permalink Normal View History

2024-12-05 13:15:22 -05:00
package step
// Error enumerates errors common to this package.
type Error string; const (
2024-12-10 13:18:54 -05:00
ErrCircularInheritance Error = "circular inheritance"
ErrExecutionCanceled Error = "execution canceled"
2024-12-10 13:18:54 -05:00
ErrMetaMalformed Error = "metadata is malformed"
ErrMetaNeverClosed Error = "metadata is never closed"
ErrTypeMismatch Error = "type mismatch"
ErrPluginBadSymbol Error = "plugin has an incorrect symbol"
ErrPluginNotOwnedByRoot Error = "plugin is not owned by the root user"
2024-12-10 15:51:34 -05:00
ErrPathNotAbsolute Error = "path is not absolute"
2024-12-10 13:18:54 -05:00
ErrInsufficientSystem Error = "the system cannot perform this action"
2024-12-13 13:04:22 -05:00
ErrPigsFlying Error = "play the lottery today"
2024-12-13 13:30:50 -05:00
ErrDoubleClose Error = "object was closed twice"
2024-12-05 13:15:22 -05:00
)
// Error fulfills the error interface.
func (err Error) Error () string {
return string(err)
}
2024-12-10 15:51:34 -05:00
// Errors is any error that unwraps to a list of sub-errors.
type Errors interface {
Unwrap () []error
}