quantum-random-0.6.4: Retrieve, store and manage real quantum random data.

Safe HaskellSafe
LanguageHaskell2010

Quantum.Random.Exceptions

Contents

Description

Provides a data type describing the parsing errors that are possible, though unlikely, to be encountered.

Note that since network requests are handled by the http-conduit package, the corresponding HttpException is also one a user may wish to handle.

Usually to be imported via the Quantum.Random module.

Synopsis

QRN exception data type

data QRException Source #

Represents two possible error conditions that may be encountered: in interpreting data retrived from ANU, or while reading the local settings file.

Throwing

throwLeft :: Exception e => IO (Either e a) -> IO a Source #

Perform an IO computation that might encounter a problem corresponding to a Exception. If so, throw the exception, if not just return the value.