package errs

import "src.elv.sh/pkg/eval/errs"

Package errs declares error types used as exception causes.

Index

Package Files

errs.go

type ArityMismatch

type ArityMismatch struct {
    What      string
    ValidLow  int
    ValidHigh int
    Actual    int
}

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

type BadValue struct {
    What   string
    Valid  string
    Actual string
}

BadValue encodes an error where the value does not meet a requirement. For out-of-range erros, use OutOfRange.

func (BadValue) Error

func (e BadValue) Error() string

type OutOfRange

type OutOfRange struct {
    What      string
    ValidLow  string
    ValidHigh string
    Actual    string
}

OutOfRange encodes an error where a value is out of its valid range.

func (OutOfRange) Error

func (e OutOfRange) Error() string

Package errs imports 2 packages (graph) and is imported by 3 packages. Updated 1 week ago.

.
Tools for package owners.