reason

package
v0.0.0-...-bc1b659 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

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