Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Error information
Types
More information on the cause of the failure.
NOTE: OpenAPI API's says that the $sel:code:Error
and $sel:message:Error
fields are required,
but in practice the Error
record can be present with all fields omitted,
so they are all marked optional (Maybe
) here
Instances
FromJSON Error Source # | |
Defined in OpenAI.V1.Error | |
Generic Error Source # | |
Show Error Source # | |
type Rep Error Source # | |
Defined in OpenAI.V1.Error type Rep Error = D1 ('MetaData "Error" "OpenAI.V1.Error" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "Error" 'PrefixI 'True) ((S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "param") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "line") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Natural))))) |