errors

package
v0.0.0-...-1276dd2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(err error) (code int)

Code returns error code if applicable or zero otherwise

func CodeMessage

func CodeMessage(err error) (int, string)

CodeMessage returns error code and message if applicable or zero code otherwise

func Errorf

func Errorf(code int, format string, args ...interface{}) error

Errorf formats according to a format specifier and returns the string as a value that satisfies error.

func New

func New(message string) error

New returns an error with the supplied message.

func NewWithCode

func NewWithCode(message string, code int) error

NewWithCode returns an error with the supplied message and code.

func WrapCode

func WrapCode(err error, code int) error

WrapCode wraps error with code

Types

This section is empty.

Jump to

Keyboard shortcuts

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