package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Mar 2, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package errors provides internal error handling and presentation for Tavern.
WrapHandler provides middleware for handlers to present errors to the user if any occur.
type HTTP struct {
WrappedErr error
StatusCode int
}
HTTP wraps an error with a desired response status code, useful for error presentation.
NewHTTP creates a new wrapped HTTP error that can be used for error presentation.
Error presents the underlying error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.