Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
The mostly exceptions has the field for its cause, and its clue.
The cause is the message.
The clue is some stuff for find bugs,
the clue can be omitted if you don't need it.
(e.g. ioException'
, illegalArgumentException
)
- data IOException' a
- = IOException' { }
- | FileNotFoundException { }
- ioException' :: String -> IOException' ()
- data IllegalArgumentException a = IllegalArgumentException {}
- illegalArgumentException :: String -> IllegalArgumentException ()
- data GeneralException a = GeneralException {
- exceptionName :: String
- exceptionCause :: String
- exceptionClue :: a
- generalException :: String -> String -> GeneralException ()
- data IndexOutOfBoundsException a = IndexOutOfBoundsException {}
- indexOutOfBoundsException :: String -> IndexOutOfBoundsException ()
Documentation
data IOException' a Source #
Simular to Control.Exception.IOException
ioException' :: String -> IOException' () Source #
A constructor for IOException' but doesn't take the clue
data IllegalArgumentException a Source #
Like java.lang.IllegalArgumentException
illegalArgumentException :: String -> IllegalArgumentException () Source #
A constructor for IllegalArgumentException but doesn't take the clue
data GeneralException a Source #
An other of these exceptions
GeneralException | |
|
generalException :: String -> String -> GeneralException () Source #
A constructor for GeneralException but doesn't take the clue
data IndexOutOfBoundsException a Source #
Like java.lang.IndexOutOfBoundsException
indexOutOfBoundsException :: String -> IndexOutOfBoundsException () Source #
A constructor for IndexOutOfBoundsException but doesn't take the clue