errors

package
v0.0.0-...-65247a5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2014 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

IsNotFoundError is satisfied by errors created by this package representing resources that can't be found.

func IsNotImplementedError

func IsNotImplementedError(err error) bool

IsNotImplementedError reports whether the error was created with NewNotImplementedError.

func IsUnauthorizedError

func IsUnauthorizedError(err error) bool

IsUnauthorizedError is satisfied by errors created by this package representing authorization failures.

func NewNotFoundError

func NewNotFoundError(err error, msg string) error

NewNotFoundError returns a new error wrapping err that satisfies IsNotFoundError().

func NewNotImplementedError

func NewNotImplementedError(what string) error

NewNotImplementedError returns an error signifying that something is not implemented.

func NewUnauthorizedError

func NewUnauthorizedError(err error, msg string) error

NewUnauthorizedError returns an error which wraps err and satisfies IsUnauthorized().

func NotFoundf

func NotFoundf(format string, args ...interface{}) error

NotFoundf returns a error which satisfies IsNotFoundError(). The message for the error is made up from the given arguments formatted as with fmt.Sprintf, with the string " not found" appended.

func Unauthorizedf

func Unauthorizedf(format string, args ...interface{}) error

Unauthorizedf returns an error which satisfies IsUnauthorizedError().

Types

This section is empty.

Jump to

Keyboard shortcuts

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