hercules-ci-api-0.8.2.0: Hercules CI API definition with Servant
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hercules.API.Error

Synopsis

Documentation

data Error Source #

General error type used in (some) HTTP error response bodies and in some resources.

Constructors

Error 

Fields

  • errorTags :: [Text]

    Symbolic names of the error condition; identifiers that clients may use to identify specific errors or classes of errors.

  • message :: Text

    Human-readable error message.

Instances

Instances details
FromJSON Error Source # 
Instance details

Defined in Hercules.API.Error

ToJSON Error Source # 
Instance details

Defined in Hercules.API.Error

Generic Error Source # 
Instance details

Defined in Hercules.API.Error

Associated Types

type Rep Error :: Type -> Type #

Methods

from :: Error -> Rep Error x #

to :: Rep Error x -> Error #

Show Error Source # 
Instance details

Defined in Hercules.API.Error

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

NFData Error Source # 
Instance details

Defined in Hercules.API.Error

Methods

rnf :: Error -> () #

Eq Error Source # 
Instance details

Defined in Hercules.API.Error

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #

ToSchema Error Source # 
Instance details

Defined in Hercules.API.Error

ToSchema Error Source # 
Instance details

Defined in Hercules.API.Error

type Rep Error Source # 
Instance details

Defined in Hercules.API.Error

type Rep Error = D1 ('MetaData "Error" "Hercules.API.Error" "hercules-ci-api-0.8.2.0-inplace" 'False) (C1 ('MetaCons "Error" 'PrefixI 'True) (S1 ('MetaSel ('Just "errorTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))