public class DBException extends DataSourceException
DBDataSource
, in most cases the cause
is a SQLException
or an IOException
.Constructor and Description |
---|
DBException(DBDataSource dataSource)
Constructs a new
DBException with the specified
dataSource . |
DBException(DBDataSource dataSource,
String message)
Constructs a new
DBException with the specified
dataSource . |
DBException(DBDataSource dataSource,
String message,
Throwable cause)
Constructs a new
DBException with the specified
dataSource . |
DBException(DBDataSource dataSource,
Throwable cause)
Constructs a new
DBException with the specified
dataSource . |
Modifier and Type | Method and Description |
---|---|
DBDataSource<?> |
getDataSource()
Return the data source where the error occurs.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DBException(DBDataSource dataSource)
DBException
with the specified
dataSource
.dataSource
- the data source where the error occurspublic DBException(DBDataSource dataSource, String message)
DBException
with the specified
dataSource
.dataSource
- the data source where the error occursmessage
- the detail message. The detail message is saved for later
retrieval by the Throwable.getMessage()
method.public DBException(DBDataSource dataSource, Throwable cause)
DBException
with the specified
dataSource
.dataSource
- the data source where the error occurscause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public DBException(DBDataSource dataSource, String message, Throwable cause)
DBException
with the specified
dataSource
.dataSource
- the data source where the error occursmessage
- the detail message. The detail message is saved for later
retrieval by the Throwable.getMessage()
method.cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public DBDataSource<?> getDataSource()
getDataSource
in class DataSourceException
Copyright © 2003–2023 XDEV Software. All rights reserved.