pdf-toolbox-core-0.0.4.1: A collection of tools for processing PDF files.

Safe HaskellSafe
LanguageHaskell98

Pdf.Toolbox.Core.Error

Description

Error used by API

Synopsis

Documentation

data PdfError Source

Errors

Instances

type PdfE m = ExceptT PdfError m Source

API uses this for error handling

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

tryPdfIO :: MonadIO m => IO a -> PdfE m a Source

Catch exception if any and convert to IOError