errors

package
v3.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(httpStatus int, caseCode string, message string) error

Types

type Error

type Error struct {
	CaseCode       string
	HttpStatus     int
	Message        string
	DefaultMessage string
	Data           interface{}
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) GetHttpStatus

func (e *Error) GetHttpStatus() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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