error

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(logger zerolog.Logger) echo.HTTPErrorHandler

Handler is a modified version of echo's own DefaultHTTPErrorHandler function. It allows us to do the following: - log a committed response, both that return an error, and ones that don't - log all internal errors without exposing them to the client - modify the response json to also include the status code in the response body

Types

This section is empty.

Jump to

Keyboard shortcuts

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