atlas-0.1.0.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainersupport@geniusyield.co
Stabilitydevelop
Safe HaskellNone
LanguageHaskell2010

GeniusYield.HTTP.Errors

Description

 
Synopsis

Documentation

class IsGYApiError e where #

Class of types that can be converted into an HTTP API error.

Minimal complete definition

Nothing

Methods

toApiError ∷ e → GYApiError #

default toApiErrorException e ⇒ e → GYApiError #

Instances

Instances details
IsGYApiError BuildTxException # 
Instance details

Defined in GeniusYield.Transaction

data GYApiError #

An example error code can be: INSUFFICIENT_BALANCE (i.e. it is not the HTTP status error message)

The message can be any textual representation of the error with more information.

The status code should be the HTTP status code.

Constructors

GYApiError 

Fields

Instances

Instances details
Eq GYApiError # 
Instance details

Defined in GeniusYield.HTTP.Errors

Methods

(==)GYApiErrorGYApiErrorBool #

(/=)GYApiErrorGYApiErrorBool #

Show GYApiError # 
Instance details

Defined in GeniusYield.HTTP.Errors

someBackendErrorTextGYApiError #

Create a typical BACKEND_ERROR internal serval error with given message.