| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Exception.Throwable.TH
Description
The data types creator of exceptions in the compile type.
It has the record of "cause" and "clue".
- declareException :: String -> DecsQ
Documentation
declareException :: String -> DecsQ Source #
Declare simple concrete exception datat type in the compile time.
exceptionName must be PascalCase
(e.g> IOException', IndexOutOfBoundsException. NG> "ioException'", "indexOutOfBoundsException") .
And exceptionName should have the suffix of Exception.