org.geotools.data
Class DataSourceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byorg.geotools.data.DataSourceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DbaseFileException, ShapefileException

public class DataSourceException
extends java.io.IOException

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:
Serialized Form

Constructor Summary
DataSourceException(java.lang.String msg)
          Constructs a new instance of DataSourceException
DataSourceException(java.lang.String msg, java.lang.Throwable cause)
          Constructs a new instance of DataSourceException
DataSourceException(java.lang.Throwable cause)
          Constructs a new instance of DataSourceException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSourceException

public DataSourceException(java.lang.String msg)
Constructs a new instance of DataSourceException

Parameters:
msg - A message explaining the exception

DataSourceException

public DataSourceException(java.lang.Throwable cause)
Constructs a new instance of DataSourceException

Parameters:
cause - A message explaining the exception

DataSourceException

public DataSourceException(java.lang.String msg,
                           java.lang.Throwable cause)
Constructs a new instance of DataSourceException

Parameters:
msg - A message explaining the exception
cause - the throwable object which caused this exception


Copyright © GeoTools. All Rights Reserved.