Idris2Doc : HTTP.RequestErr

HTTP.RequestErr

(source)

Definitions

record RequestErr : Type
Totality: total
Visibility: public export
Constructor: 
RE : Bits16 -> String -> String -> Either JSON String -> String -> RequestErr

Projections:
.details : RequestErr -> Either JSON String
.error : RequestErr -> String
.message : RequestErr -> String
.path : RequestErr -> String
.status : RequestErr -> Bits16

Hints:
Eq RequestErr
FromJSON RequestErr
HTTPLocal => Interpolation RequestErr
Show RequestErr
ToJSON RequestErr
.status : RequestErr -> Bits16
Totality: total
Visibility: public export
status : RequestErr -> Bits16
Totality: total
Visibility: public export
.error : RequestErr -> String
Totality: total
Visibility: public export
error : RequestErr -> String
Totality: total
Visibility: public export
.message : RequestErr -> String
Totality: total
Visibility: public export
message : RequestErr -> String
Totality: total
Visibility: public export
.details : RequestErr -> Either JSON String
Totality: total
Visibility: public export
details : RequestErr -> Either JSON String
Totality: total
Visibility: public export
.path : RequestErr -> String
Totality: total
Visibility: public export
path : RequestErr -> String
Totality: total
Visibility: public export
requestErr : Status -> RequestErr
Totality: total
Visibility: export
requestErrMsg : String -> Status -> RequestErr
Totality: total
Visibility: export
requestErrDetails : Interpolation a => a -> Status -> RequestErr
Totality: total
Visibility: export
requestErrJSON : ToJSON a => a -> Status -> RequestErr
Totality: total
Visibility: export
toJSONErr : FromJSON e => RequestErr -> Maybe e
  Tries to convert a `RequestErr` to an error of type `e`
by decoding its `details` field.

Totality: total
Visibility: export
decodeErr : (0 e : Type) -> Has RequestErr es => Has e es => FromJSON e => MErr f => f es a -> f es a
  Tries to convert a `RequestErr` to an error of type `e`
and throws that in case the conversion succeeds. Otherwise,
the original request error is rethrown.

Totality: total
Visibility: export