maestro-sdk-1.7.3: Maestro Blockchain Indexer SDK
Safe HaskellNone
LanguageHaskell2010

Maestro.Client.Error

Synopsis

Documentation

data ApiError #

In cases of failure, at times, Maestro returns a JSON object with an error message.

Constructors

ApiError 

Fields

Instances

Instances details
Eq ApiError # 
Instance details

Defined in Maestro.Client.Error

Methods

(==)ApiErrorApiErrorBool #

(/=)ApiErrorApiErrorBool #

Show ApiError # 
Instance details

Defined in Maestro.Client.Error

Methods

showsPrecIntApiErrorShowS #

showApiErrorString #

showList ∷ [ApiError] → ShowS #

Generic ApiError # 
Instance details

Defined in Maestro.Client.Error

Associated Types

type Rep ApiErrorTypeType #

Methods

fromApiErrorRep ApiError x #

toRep ApiError x → ApiError #

ToJSON ApiError # 
Instance details

Defined in Maestro.Client.Error

Methods

toJSONApiError → Value

toEncodingApiError → Encoding

toJSONList ∷ [ApiError] → Value

toEncodingList ∷ [ApiError] → Encoding

omitFieldApiErrorBool

FromJSON ApiError # 
Instance details

Defined in Maestro.Client.Error

Methods

parseJSON ∷ Value → Parser ApiError

parseJSONList ∷ Value → Parser [ApiError]

omittedFieldMaybe ApiError

type Rep ApiError # 
Instance details

Defined in Maestro.Client.Error

type Rep ApiError = D1 ('MetaData "ApiError" "Maestro.Client.Error" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "ApiError" 'PrefixI 'True) (S1 ('MetaSel ('Just "apiErrorError") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "apiErrorMessage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "apiErrorCode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Word)))))

data MaestroError #

Maestro errors.

Constructors

MaestroError !Text

Other Maestro error.

MaestroBadRequest !Text

400 status code.

MaestroApiKeyMissing !Text

401 status code.

MaestroNotFound

404 status code.

MaestroUnsupportedMediaType

415 status code.

MaestroUsageLimitReached

429 status code.

MaestroInternalError !Text

500 status code.

ServantClientError !ClientError

When ClientError is not of form FailureResponse.

Instances

Instances details
Eq MaestroError # 
Instance details

Defined in Maestro.Client.Error

Show MaestroError # 
Instance details

Defined in Maestro.Client.Error

Exception MaestroError # 
Instance details

Defined in Maestro.Client.Error