org.apache.derby.iapi.services.io
Class DerbyIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by 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 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
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.
 
Method Summary
 java.lang.String getSQLState()
           
 
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
 

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()

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.