pdf-toolbox-core-0.1.1: A collection of tools for processing PDF files.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pdf.Core.Exception

Description

Exceptions and utilities

Synopsis

Documentation

data Corrupted Source #

File is corrupted

Contains general message and a list of details

Constructors

Corrupted String [String] 

data Unexpected Source #

Something unexpected occurs, probably API missuse

Constructors

Unexpected String [String] 

sure :: Either String a -> IO a Source #

We are sure it is Right. Otherwise Corripted is thrown

message :: String -> IO a -> IO a Source #

Catch Corrupted and Unexpected and add a message to it before rethrowing