Overview | Methods | This Package | All Packages
Prints both the exception name and description and the stack trace to the exception to debug output.
Syntax
public static void printExceptionIf( boolean condition, Throwable t )
public static void printExceptionIf( String name, Throwable t )
Parameters
condition
The condition to check.
t
The exception to print.
name
The name of the switch to check.
Remarks
In the first syntax, this method prints the specified exception if the condition evaluates to true. In the second syntax, this method prints the specified exception if the specified switch is set to true.
This method will be omitted from your code unless you have the DEBUG conditional compile switch set.
See Also getExceptionText