reason

package
v5.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fail

func Fail(r Reason) common.MapStr

func FailError

func FailError(typ string, err error) common.MapStr

func FailIO

func FailIO(err error) common.MapStr

func FailValidate

func FailValidate(err error) common.MapStr

Types

type IOError

type IOError struct {
	// contains filtered or unexported fields
}

func (IOError) Error

func (e IOError) Error() string

func (IOError) Type

func (IOError) Type() string

type Reason

type Reason interface {
	error
	Type() string
}

func IOFailed

func IOFailed(err error) Reason

func ValidateFailed

func ValidateFailed(err error) Reason

type ValidateError

type ValidateError struct {
	// contains filtered or unexported fields
}

func (ValidateError) Error

func (e ValidateError) Error() string

func (ValidateError) Type

func (ValidateError) Type() string

Jump to

Keyboard shortcuts

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