exception

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternalServer = errors.New("error.0001")
	ErrInvalidFields  = errors.New("error.0002")
	ErrHeroNotFound   = errors.New("error.0003")
)

Functions

func RestError

func RestError(key error) (int, error)

Types

type Exception

type Exception struct {
	Key string `json:"key"`
}

func New

func New(key string) *Exception

func (*Exception) Error

func (e *Exception) Error() string

Jump to

Keyboard shortcuts

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