|
Language.C.Data.Error | Portability | ghc | Stability | experimental | Maintainer | benedikt.huber@gmail.com |
|
|
|
|
|
Description |
Base type for errors occuring in parsing, analysing and pretty-printing.
With ideas from Simon Marlow's
An extensible dynamically-typed hierarchy of execeptions [2006]
|
|
Synopsis |
|
|
|
|
Severity Level
|
|
|
Error levels (severity)
| Constructors | LevelWarn | | LevelError | | LevelFatal | |
|
|
|
|
return True when the given error makes it impossible to continue
analysis or compilation.
|
|
Error class
|
|
|
errors in Language.C are instance of Error
| | Methods | | obtain source location etc. of an error
| | | wrap error in CError
| | | try to cast a generic CError to the specific error type
| | | modify the error level
|
|
|
|
|
position of an Error
|
|
|
severity level of an Error
|
|
|
message lines of an Error
|
|
Error supertype
|
|
|
supertype of all errors
| Constructors | forall err . Error err => CError err | |
|
|
|
Infos attached to errors
|
|
|
information attached to every error in Language.C
| Constructors | |
|
|
|
|
|
converts an error into a string using a fixed format
- either the lines of the long error message or the short message has to be non-empty
- the format is
<fname>:<row>: (column <col>) [<err lvl>]
>>> <line_1>
<line_2>
...
<line_n>
|
|
|
|
Default error types
|
|
data UnsupportedFeature | Source |
|
error raised if a operation requires an unsupported or not yet implemented feature.
|
|
|
|
|
|
|
|
unspecified error raised by the user (in case the user does not want to define
her own error types).
|
|
|
|
|
Raising internal errors
|
|
|
raise a fatal internal error; message may have multiple lines
|
|
Produced by Haddock version 2.6.1 |