Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Bcc.Api.Error
Description
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 #
Methods
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 #
Constructors
ErrorAsException ∷ Error e ⇒ e → ErrorAsException |
Instances
Show ErrorAsException Source # | |
Defined in Bcc.Api.Error | |
Exception ErrorAsException Source # | |
Defined in Bcc.Api.Error |
Constructors
FileError FilePath e | |
FileErrorTempFile | |
FileIOError FilePath IOException |