| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Pdf.Toolbox.Core.Error
Description
Error used by API
Documentation
Errors
Constructors
| ParseError [String] String | Parser error |
| IOError IOError | |
| AnnotatedError String PdfError | |
| UnexpectedError String | Something unexpected |
annotateError :: Monad m => String -> PdfE m a -> PdfE m a Source
Wrap any PdfError into AnnotatedError
Usefull when you want to add high-level description to error, returned by low-level function
annotatingError :: Monad m => PdfE m a -> String -> PdfE m a Source
annotateError with fliped arguments
module Control.Error