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

          Source Files