errs

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2021 License: BSD-2-Clause Imports: 2 Imported by: 0

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL