public class SQLSeriousPoemException extends SeriousPoemException
SQLException thrown by the dbms
in a situation where it matters.| Modifier and Type | Field and Description |
|---|---|
String |
sql
The SQL string that was being executed when the error occurred.
|
subException| Constructor and Description |
|---|
SQLSeriousPoemException(SQLException sqlException)
Constructor for use if you do not have the SQL string.
|
SQLSeriousPoemException(SQLException sqlException,
String sql)
An SQL exception and the statement that provoked it.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
The detail message which may be null.
|
getCoreMessage, initCause, innermostException, printStackTrace, printStackTrace, printStackTraceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, setStackTrace, toStringpublic String sql
public SQLSeriousPoemException(SQLException sqlException, String sql)
sqlException - the db exception that has been caughtsql - the SQL statement that provoked the exceptionpublic SQLSeriousPoemException(SQLException sqlException)
sqlException - the db exception that has been caughtpublic String getMessage()
PoemExceptiongetMessage in class PoemExceptionThrowable.getMessage()Copyright © 2000–2021 PanEris. All rights reserved.