error

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(ctx context.Context, err error, logger adapters.LogAdapterInterface) ([]byte, int)

Handle handles all errors globally.

func HandleValidationErrors

func HandleValidationErrors(ctx context.Context, errs map[string]string, logger adapters.LogAdapterInterface) ([]byte, int)

HandleValidationErrors specifically handles validation errors thrown by the validator.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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