reason

package
Version: v6.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL