errhandler

package
v0.0.0-...-e46c3b8 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(l reqlogger.Logger) func(ctx *fiber.Ctx, err error) error

Handler is the error handler creator.

Types

type Error

type Error struct {
	Message string      `json:"message"`
	Name    string      `json:"name"`
	Data    interface{} `json:"data,omitempty"`
}

Error is the type of the error data.

Jump to

Keyboard shortcuts

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