errors

package
v0.0.0-...-fc5b4a9 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Translate

func Translate(err error) gin.H

Types

type BadRequest

type BadRequest struct {
	Message string
}

func (*BadRequest) Error

func (e *BadRequest) Error() string

type HTTPError

type HTTPError struct {
	Err  error
	Code int
}

type InternalServerError

type InternalServerError struct {
	Err error
}

func (*InternalServerError) Error

func (e *InternalServerError) Error() string

type NotFoundError

type NotFoundError struct {
	Message string
}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

Jump to

Keyboard shortcuts

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