Documentation
¶
Overview ¶
Package errs declares error types used as exception causes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArityMismatch ¶
ArityMismatch encodes an error where the expected number of values is out of the valid range.
func (ArityMismatch) Error ¶
func (e ArityMismatch) Error() string
type BadValue ¶
BadValue encodes an error where the value does not meet a requirement. For out-of-range errors, use OutOfRange.
type OutOfRange ¶
OutOfRange encodes an error where a value is out of its valid range.
type ReaderGone ¶
type ReaderGone struct { }
ReaderGone is raised by the writer in a pipeline when the reader end has terminated. It could be raised directly by builtin commands, or when an external command gets terminated by SIGPIPE after Elvish detects the read end of the pipe has exited earlier.
type SetReadOnlyVar ¶
type SetReadOnlyVar struct { // Name of the read-only variable. This field is initially empty, and // populated later when context information is available. VarName string }
SetReadOnlyVar is returned by the Set method of a read-only variable.
func (SetReadOnlyVar) Error ¶
func (e SetReadOnlyVar) Error() string
Error implements the error interface.