exception

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(ctx *fiber.Ctx, err error) error

func PanicIfError

func PanicIfError(err error, ctx ...string)

Types

type BadRequestError

type BadRequestError struct{ Message string }

func (*BadRequestError) Error

func (e *BadRequestError) Error() string

type ForbiddenError

type ForbiddenError struct{ Message string }

func (*ForbiddenError) Error

func (e *ForbiddenError) Error() string

type InternalServerError

type InternalServerError struct{ Message string }

func (*InternalServerError) Error

func (e *InternalServerError) Error() string

type NotFoundError

type NotFoundError struct{ Message string }

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type UnauthorizedError

type UnauthorizedError struct{ Message string }

func (*UnauthorizedError) Error

func (e *UnauthorizedError) Error() string

type ValidationError

type ValidationError struct {
	FailedField string
	Tag         string
	Value       any
}

Jump to

Keyboard shortcuts

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