errors

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

func WithContext(ctx Context) optFunc

func WithHTTPCode

func WithHTTPCode(code int) optFunc

func WithHTTPDetail

func WithHTTPDetail(detail HTTPDetail) optFunc

func WithHiddenFrames

func WithHiddenFrames(n uint) optFunc

func Wrap

func Wrap(err error, opts ...optFunc) error

Types

type Context

type Context map[string]any

type HTTPDetail

type HTTPDetail uint8
const (
	NoHTTPDetail HTTPDetail = iota
	MessageHTTPDetail
	ContextHTTPDetail
)

type RedgiantError

type RedgiantError struct {
	// contains filtered or unexported fields
}

func New

func New(msg string, opts ...optFunc) *RedgiantError

func (RedgiantError) Error

func (rge RedgiantError) Error() string

func (RedgiantError) MarshalZerologObject

func (rge RedgiantError) MarshalZerologObject(e *zerolog.Event)

func (RedgiantError) SendAsResponse

func (rge RedgiantError) SendAsResponse(c echo.Context)

type RedgiantErrorer

type RedgiantErrorer interface {
	error
	zerolog.LogObjectMarshaler
	SendAsResponse(c echo.Context)
}

Jump to

Keyboard shortcuts

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