public class DBException extends TAPException
DBConnection
if an error occurs while a DB operation (interrogation, update, transaction management).DBConnection
,
Serialized FormConstructor and Description |
---|
DBException(java.lang.String message)
Builds a DBException.
|
DBException(java.lang.String message,
java.lang.String query)
Builds a DBException.
|
DBException(java.lang.String message,
java.lang.Throwable cause)
Builds a DBException
|
DBException(java.lang.String message,
java.lang.Throwable cause,
java.lang.String query)
Builds a DBException.
|
DBException(java.lang.Throwable cause)
Builds a DBException.
|
DBException(java.lang.Throwable cause,
java.lang.String query)
Builds a DBException.
|
getExecutionStatus, getHttpErrorCode, getQuery
public DBException(java.lang.String message)
message
- Error message.public DBException(java.lang.String message, java.lang.String query)
Builds a DBException.
WARNING: The query parameter is supposed to correspond to the ADQL query. You can set it to the SQL query but you must be aware that it may be displayed to the user.
message
- Error message.query
- ADQL query (this string may be displayed to the user).public DBException(java.lang.Throwable cause)
cause
- Cause of this error.public DBException(java.lang.Throwable cause, java.lang.String query)
Builds a DBException.
WARNING: The query parameter is supposed to correspond to the ADQL query. You can set it to the SQL query but you must be aware that it may be displayed to the user.
cause
- Cause of this error.query
- ADQL query (this string may be displayed to the user).public DBException(java.lang.String message, java.lang.Throwable cause)
message
- Error message.cause
- Cause of this error.public DBException(java.lang.String message, java.lang.Throwable cause, java.lang.String query)
Builds a DBException.
WARNING: The query parameter is supposed to correspond to the ADQL query. You can set it to the SQL query but you must be aware that it may be displayed to the user.
message
- Error message.cause
- Cause of this error.query
- ADQL query (this string may be displayed to the user).