Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Exceptions used by this application.
- CAVEAT: though intended to be orthogonal, there's some inevitable overlap.
Synopsis
- data BadData
- data BadRequest
- data Exception
- mkDuplicateData :: String -> Exception
- mkIncompatibleData :: String -> Exception
- mkInsufficientData :: String -> Exception
- mkInvalidDatum :: String -> Exception
- mkNullDatum :: String -> Exception
- mkOutOfBounds :: String -> Exception
- mkRedundantData :: String -> Exception
- mkParseFailure :: String -> Exception
- mkRequestFailure :: String -> Exception
- mkResultUndefined :: String -> Exception
- mkSearchFailure :: String -> Exception
- isBadData :: Exception -> Bool
- isBadRequest :: Exception -> Bool
Types
Data-types
This sum-type of exceptions may be thrown by any function which checks its parameters; typically either constructors or mutators.
data BadRequest Source #
This sum-type of exceptions may be thrown by any function which is unable to comply with a correctly formed request.
Instances
Show BadRequest Source # | |
Defined in BishBosh.Data.Exception showsPrec :: Int -> BadRequest -> ShowS # show :: BadRequest -> String # showList :: [BadRequest] -> ShowS # |
Each exception includes both a type & arbitrary details.
Instances
Show Exception Source # | |
Exception Exception Source # | |
Defined in BishBosh.Data.Exception toException :: Exception -> SomeException # fromException :: SomeException -> Maybe Exception # displayException :: Exception -> String # |
Functions
Constructors
mkDuplicateData :: String -> Exception Source #
Constructor.
mkIncompatibleData :: String -> Exception Source #
Constructor.
mkInsufficientData :: String -> Exception Source #
Constructor.
mkInvalidDatum :: String -> Exception Source #
Constructor.
mkNullDatum :: String -> Exception Source #
Constructor.
mkOutOfBounds :: String -> Exception Source #
Constructor.
mkRedundantData :: String -> Exception Source #
Constructor.
mkParseFailure :: String -> Exception Source #
Constructor.
mkRequestFailure :: String -> Exception Source #
Constructor.
mkResultUndefined :: String -> Exception Source #
Constructor.
mkSearchFailure :: String -> Exception Source #
Constructor.
Predicates
isBadRequest :: Exception -> Bool Source #
Predicate.