Class DerbyIOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.derby.iapi.services.io.DerbyIOException
-
- All Implemented Interfaces:
java.io.Serializable
public final class DerbyIOException extends java.io.IOException
A subclass ofIOException
that carries a SQL state. The original reason for adding it was to separate betweenIOException
s generated by the application stream and the ones generated by the Derby wrapper streams, see for instanceRawToBinaryFormatStream
. Without this distinction, the user would not be able to easily writecatch
-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()
-