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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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