Class DerbyIOException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class DerbyIOException
    extends java.io.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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String sqlState
      A Derby SQLState.
    • Constructor Summary

      Constructors 
      Constructor Description
      DerbyIOException​(java.lang.String msg, java.lang.String sqlState)
      Create a new Derby IO exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getSQLState()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • sqlState

        private final java.lang.String sqlState
        A Derby SQLState.
    • Constructor Detail

      • DerbyIOException

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

      • getSQLState

        public java.lang.String getSQLState()