error

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

type Basic struct {
	HTTPStatus       int    `json:"-"`
	ErrorCode        string `json:"errorCode"`
	ErrorDescription string `json:"errorDes"`
}

func (*Basic) Error

func (b *Basic) Error() string

func (*Basic) SetHTTPStatus

func (b *Basic) SetHTTPStatus(code int)

type Error

type Error interface {
	error
	SetHTTPStatus(code int)
}

Jump to

Keyboard shortcuts

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