Phantom Documentation

[Help Home] [Phantom Home]

void exception.throw()

Return Type: void
Parameters: none


The throw function activates an exception so it is processed by the interpreter. Until an exception is thrown, it is only a variable. Once it is thrown, the interpreter will process the exception according to its state. Additionally, any thrown exceptions (except OK types) can be caught and processed using try-catch statements.

Example Code

exception err;
err.SetError("User Error");

See exception for additional examples.

See Also: exception, try-catch

Copyright 2000-2011 Phantom Automated Solutions