Phantom
Documentation [Help Home] [Phantom Home] |
Logging Errors
|
Phantom allows
for user-defined errors and warnings. As such, it provides the exception
data type. An exception can be created with an error message, a warning
message, or a user defined message type. The exception can then be 'thrown'
using the exception's throw member function. When the exception is thrown,
it is as though an error or warning occurred, and it is processed like
any other Phantom error or warning. Exceptions thrown from an exception
data type will be caught by try-catch statements, and will also increment
any error and warning counters.
See Also: exceptions Deprecated (after Phantom v1.1): Phantom allows the user to log errors manually. This is done using the 'LogError' function. This function writes error output to both the screen and the output file as though an error was produced by Phantom. For more information, view the LogError definition. See Also: LogError, Log, Output
|