Documentation ¶
Index ¶
- func HTTPErrorHandler() func(error, echo.Context)
- type HTTPError
- func BodyIsEmptyError() *HTTPError
- func ChainNotFoundError(chainID string) *HTTPError
- func ContractExecutionError(err error) *HTTPError
- func HTTPErrorFromEchoError(httpError *echo.HTTPError) *HTTPError
- func InvalidOffLedgerRequestError(err error) *HTTPError
- func InvalidPeerName() *HTTPError
- func InvalidPeerPublicKeys(invalidPeerPubKeys []string) *HTTPError
- func InvalidPropertyError(propertyName string, err error) *HTTPError
- func NewHTTPError(httpCode int, message interface{}, err error) *HTTPError
- func NoRecordFoundErrror(err error) *HTTPError
- func PeerNameNotFoundError(name string) *HTTPError
- func ReceiptError(err error) *HTTPError
- func SelfAsPeerError() *HTTPError
- func UserCanNotBeDeleted(username string, explanation string) *HTTPError
- func UserNotFoundError(username string) *HTTPError
- type HTTPErrorResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPErrorHandler ¶
func HTTPErrorHandler() func(error, echo.Context)
Types ¶
type HTTPError ¶
func BodyIsEmptyError ¶
func BodyIsEmptyError() *HTTPError
func ChainNotFoundError ¶
func ContractExecutionError ¶
func HTTPErrorFromEchoError ¶
func HTTPErrorFromEchoError(httpError *echo.HTTPError) *HTTPError
func InvalidPeerName ¶
func InvalidPeerName() *HTTPError
func InvalidPeerPublicKeys ¶
func InvalidPropertyError ¶
func NewHTTPError ¶
func NoRecordFoundErrror ¶
func PeerNameNotFoundError ¶
func ReceiptError ¶
func SelfAsPeerError ¶
func SelfAsPeerError() *HTTPError
func UserCanNotBeDeleted ¶
func UserNotFoundError ¶
func (*HTTPError) GetErrorResult ¶
func (he *HTTPError) GetErrorResult() *HTTPErrorResult
type HTTPErrorResult ¶
type HTTPErrorResult struct { Message interface{} Error string }
Click to show internal directories.
Click to hide internal directories.