Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Class of errors used in the Api.
Synopsis
- class Show e ⇒ Error e where
- displayError ∷ e → String
- throwErrorAsException ∷ Error e ⇒ e → IO a
- data ErrorAsException where
- ErrorAsException ∷ Error e ⇒ e → ErrorAsException
- data FileError e
Documentation
class Show e ⇒ Error e where Source #
displayError ∷ e → String Source #
Instances
throwErrorAsException ∷ Error e ⇒ e → IO a Source #
The preferred approach is to use Except
or ExceptT
, but you can if
necessary use IO exceptions.
data ErrorAsException where Source #
ErrorAsException ∷ Error e ⇒ e → ErrorAsException |
Instances
Show ErrorAsException Source # | |
Defined in Bcc.Api.Error | |
Exception ErrorAsException Source # | |