package errs
import "src.elv.sh/pkg/eval/errs"
Package errs declares error types used as exception causes.
Index ¶
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.
func (BadValue) Error ¶
Error implements the error interface.
type OutOfRange ¶
OutOfRange encodes an error where a value is out of its valid range.
func (OutOfRange) Error ¶
func (e OutOfRange) Error() string
Error implements the error interface.
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.
func (ReaderGone) Error ¶
func (e ReaderGone) Error() string
Error implements the error interface.
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.
Source Files ¶
errs.go
- Version
- v0.21.0 (latest)
- Published
- Aug 13, 2024
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 day ago –
Tools for package owners.