errors

package
v0.0.0-...-cf730da Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authentication

func Authentication(err error) *myError

func Authorization

func Authorization(err error) *myError

func BadRequest

func BadRequest(err error) *myError

func Conflict

func Conflict(err error) *myError

func FromHttpStatus

func FromHttpStatus(code int, msg string) *myError

func FromString

func FromString(msg string) error

func NotFound

func NotFound(err error) *myError

func Server

func Server(err error) *myError

func Unexpected

func Unexpected(err error) *myError

Types

type Error

type Error interface {
	error
	BadRequest() bool
	Conflict() bool
	Server() bool
	NotFound() bool
	Authorization() bool
	Authentication() bool
	Unexpected() bool
}

Jump to

Keyboard shortcuts

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