errors

package
v5.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ErrParse = "******************ERROR DURING MARSHAL OF FULL MESSAGE*******************"

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomError

type CustomError struct {
	ErrorData        interface{} `json:"errorData"`
	ErrorMessage     string      `json:"errorMessage"`
	ErrorDescription interface{} `json:"errorDescription"`
	ErrorCode        string      `json:"errorCode"`
	Notify           bool        `json:"-"`
	OriginalError    string      `json:"error"`
}

func NewCustomError

func NewCustomError(errorCode, errorMessage string, errorData interface{}, errorDescription interface{}, notify bool, err error) *CustomError

func (*CustomError) Error

func (e *CustomError) Error() string

func (*CustomError) GetErrorResponse

func (e *CustomError) GetErrorResponse() ([]byte, error)

type HTTPError

type HTTPError struct {
	CustomError
	StatusCode int `json:"statusCode"`
}

func NewHTTPClientError

func NewHTTPClientError(statusCode int, errorCode, errorMessage string, errorData interface{}, errorDescription interface{}, err error) *HTTPError

func NewHTTPError

func NewHTTPError(statusCode int, errorCode, errorMessage string, errorData interface{}, errorDescription interface{}, notify bool, err error) *HTTPError

func NewHTTPServerError

func NewHTTPServerError(statusCode int, errorCode, errorMessage string, errorData interface{}, errorDescription interface{}, err error) *HTTPError

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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