apierrors

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPErrorHandler

func HTTPErrorHandler() func(error, echo.Context)

Types

type HTTPError

type HTTPError struct {
	HTTPCode        int
	Message         interface{}
	AdditionalError string
}

func BodyIsEmptyError

func BodyIsEmptyError() *HTTPError

func ChainNotFoundError

func ChainNotFoundError() *HTTPError

func ContractExecutionError

func ContractExecutionError(err error) *HTTPError

func HTTPErrorFromEchoError

func HTTPErrorFromEchoError(httpError *echo.HTTPError) *HTTPError

func InvalidOffLedgerRequestError

func InvalidOffLedgerRequestError(err error) *HTTPError

func InvalidPeerName

func InvalidPeerName() *HTTPError

func InvalidPeerPublicKeys

func InvalidPeerPublicKeys(invalidPeerPubKeys []string) *HTTPError

func InvalidPropertyError

func InvalidPropertyError(propertyName string, err error) *HTTPError

func NewHTTPError

func NewHTTPError(httpCode int, message interface{}, err error) *HTTPError

func NoRecordFoundError

func NoRecordFoundError(err error) *HTTPError

func PeerNameNotFoundError

func PeerNameNotFoundError(name string) *HTTPError

func ReceiptError

func ReceiptError(err error) *HTTPError

func SelfAsPeerError

func SelfAsPeerError() *HTTPError

func Timeout

func Timeout(msg string) *HTTPError

func UserCanNotBeDeleted

func UserCanNotBeDeleted(username string, explanation string) *HTTPError

func UserNotFoundError

func UserNotFoundError(username string) *HTTPError

func (*HTTPError) Error

func (he *HTTPError) Error() string

func (*HTTPError) GetErrorResult

func (he *HTTPError) GetErrorResult() *HTTPErrorResult

type HTTPErrorResult

type HTTPErrorResult struct {
	Message interface{}
	Error   string
}

Jump to

Keyboard shortcuts

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