errors

package
v0.0.0-...-ddd20ef Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErr

func NewErr(msg string) error

Types

type Error

type Error struct {
	Message string                 `json:"message"`
	Err     string                 `json:"error"`
	Config  map[string]interface{} `json:"config"`
}

func New

func New(msg string, e error) *Error

func (*Error) Error

func (e *Error) Error() string

toPrettyJson encodes an item into a pretty (indented) JSON string

func (*Error) FailIfErr

func (e *Error) FailIfErr()

toPrettyJson encodes an item into a pretty (indented) JSON string

func (*Error) String

func (e *Error) String() string

toPrettyJson encodes an item into a pretty (indented) JSON string

func (*Error) WarnIfErr

func (e *Error) WarnIfErr()

toPrettyJson encodes an item into a pretty (indented) JSON string

Jump to

Keyboard shortcuts

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