errors

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(next echo.HandlerFunc) echo.HandlerFunc

Middleware catch err from handlers or middlewares.

func NewAction

func NewAction(message interface{}) error

NewAction .

func NewAuthorization

func NewAuthorization(message interface{}) error

NewAuthorization .

func NewData

func NewData(message interface{}) error

NewData .

func NewNotFound

func NewNotFound() error

NewNotFound .

func NewRemote

func NewRemote() error

NewRemote .

Types

type Error

type Error struct {
	Type        Type
	SourceError error
}

Error .

func (Error) Error

func (e Error) Error() string

Error .

type Type

type Type string

Type .

const (
	Data          Type = "data"
	Action        Type = "action"
	NotFound      Type = "not-found"
	Remote        Type = "remote"
	Authorization Type = "authorization"
)

Types

Jump to

Keyboard shortcuts

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