public class ExceptionHandler
extends java.lang.Object
System.exit(-1)
Constructor and Description |
---|
ExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
handleException(java.lang.Exception exception)
Prints the message and stack trace for this Exception
|
static void |
handleException(java.lang.InternalError error)
Prints the message and stack trace for this InternalError
|
static void |
handleSQLException(java.sql.SQLException exception)
Prints the message, SQLState, vendor-specific exception code, and stack trace for this SQLException
|
static void |
handleSQLException(java.sql.SQLException exception,
java.sql.Connection database,
java.sql.Statement statement)
Prints the message, SQLState, vendor-specific exception code, and stack trace for this SQLException
|
public static void handleException(java.lang.Exception exception)
exception
- the exception that provides information on errorpublic static void handleException(java.lang.InternalError error)
error
- the internal error that provides informationpublic static void handleSQLException(java.sql.SQLException exception)
exception
- the sqlException that provides information on the database access error or other errorspublic static void handleSQLException(java.sql.SQLException exception, java.sql.Connection database, java.sql.Statement statement)
exception
- the sqlException that provides information on the database access error or other errorsdatabase
- the connection for the database that caused this exceptionstatement
- the SQL statement that caused this exception