Class DerbyIOException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.derby.iapi.services.io.DerbyIOException
All Implemented Interfaces:
Serializable

public final class DerbyIOException extends IOException
A subclass of IOException that carries a SQL state. The original reason for adding it was to separate between IOExceptions generated by the application stream and the ones generated by the Derby wrapper streams, see for instance RawToBinaryFormatStream. Without this distinction, the user would not be able to easily write catch-blocks to handle specific errors happening when reading streams.
See Also:
  • Field Details

    • sqlState

      private final String sqlState
      A Derby SQLState.
  • Constructor Details

    • DerbyIOException

      public DerbyIOException(String msg, String sqlState)
      Create a new Derby IO exception.
      Parameters:
      msg - a string describing the error
      sqlState - a Derby SQLState describing the error
  • Method Details

    • getSQLState

      public String getSQLState()