Package org.geotools.api.data
Class DataSourceException
Object
Throwable
Exception
IOException
DataSourceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DbaseFileException
,ShapefileException
Thrown when there is an error in a datasource.
This class was used back in Java 1.3 before the initCause() method was available for IOException. Since this class is used to pass on problems from external services, providing the root cause is important.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of DataSourceExceptionDataSourceException
(String msg, Throwable cause) Constructs a new instance of DataSourceExceptionDataSourceException
(Throwable cause) Constructs a new instance of DataSourceException -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataSourceException
Constructs a new instance of DataSourceException- Parameters:
msg
- A message explaining the exception
-
DataSourceException
Constructs a new instance of DataSourceException- Parameters:
cause
- A message explaining the exception
-
DataSourceException
Constructs a new instance of DataSourceException- Parameters:
msg
- A message explaining the exceptioncause
- the throwable object which caused this exception
-