Class DataSourceException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    DbaseFileException, ShapefileException

    public class DataSourceException
    extends 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 Detail

      • DataSourceException

        public DataSourceException​(String msg)
        Constructs a new instance of DataSourceException
        Parameters:
        msg - A message explaining the exception
      • DataSourceException

        public DataSourceException​(Throwable cause)
        Constructs a new instance of DataSourceException
        Parameters:
        cause - A message explaining the exception
      • DataSourceException

        public DataSourceException​(String msg,
                                   Throwable cause)
        Constructs a new instance of DataSourceException
        Parameters:
        msg - A message explaining the exception
        cause - the throwable object which caused this exception