exception

package
v0.0.0-...-19863dc Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidParameters int = 400

	Conflict int = 409

	NotFound int = 404

	ProcessmentError int = 500

	InvalidCredentials int = 401

	Unknown int = 500
)

Variables

This section is empty.

Functions

func New

func New(code int, message string, err error) error

New creates a new error

Types

type Exception

type Exception struct {
	Message string `json:"message"`
	Code    int    `json:"code"`
	Err     error  `json:"-"`
}

Exception is a struct for error

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