public class ExceptionHandler
extends java.lang.Object
System.exit(-1)
Constructor and Description |
---|
ExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
handleExceptionExit(java.lang.Exception exception)
Prints the message and stack trace for this Exception and exits; used with built in java exceptions (not
SDText-specific)
|
static void |
handleExceptionThrow(java.lang.Exception exception)
Prints the message and stack trace for this Exception and throws a runtime exception; used with exceptions that are
SDText-specific (to give user feedback about error)
|
public static void handleExceptionExit(java.lang.Exception exception) throws java.lang.RuntimeException
exception
- the exception that provides information on errorjava.lang.RuntimeException
public static void handleExceptionThrow(java.lang.Exception exception)
exception
- the exception that provides information on error