weberr

package
v0.0.0-...-7aaf587 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntoResponse

func IntoResponse(err WebError) resp.EsResponse

Types

type WebError

type WebError struct {
	Status           int       `json:"-"`
	MessageForClient string    `json:"message"`
	RequestId        uuid.UUID `json:"requestId"`
	MessageForLog    string    `json:"-"`
	Err              error     `json:"-"`
	Details          any       `json:"details"`
}

func New

func New(requestId uuid.UUID, err error) *WebError

func (*WebError) Error

func (e *WebError) Error() string

func (*WebError) Unwrap

func (e *WebError) Unwrap() error

Jump to

Keyboard shortcuts

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