org.apache.derby.iapi.services.io
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 of IOException
that carries a SQL state.
The original reason for adding it was to separate between
IOException
s 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 |
private java.lang.String |
sqlState
A Derby SQLState. |
Constructor Summary |
DerbyIOException(java.lang.String msg,
java.lang.String sqlState)
Create a new Derby IO exception. |
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 |
sqlState
private final java.lang.String sqlState
- A Derby SQLState.
DerbyIOException
public DerbyIOException(java.lang.String msg,
java.lang.String sqlState)
- Create a new Derby IO exception.
- Parameters:
msg
- a string describing the errorsqlState
- a Derby SQLState describing the error
getSQLState
public java.lang.String getSQLState()
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.