Top Description Fields Constructors Methods
org.apache.derby.iapi.services.io

public final Class DerbyIOException

extends IOException
Class Inheritance
Imports
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.

Field Summary

Modifier and TypeField and Description
private final String
sqlState

A Derby SQLState.

Constructor Summary

AccessConstructor and Description
public
DerbyIOException(String
a string describing the error
msg
,
String
a Derby SQLState describing the error
sqlState
)

Create a new Derby IO exception.

Method Summary

Modifier and TypeMethod and Description
public String

Field Detail

sqlStateback to summary
private final String sqlState

A Derby SQLState.

Constructor Detail

DerbyIOExceptionback to summary
public DerbyIOException(String msg, String sqlState)

Create a new Derby IO exception.

Parameters
msg:String

a string describing the error

sqlState:String

a Derby SQLState describing the error

Method Detail

getSQLStateback to summary
public String getSQLState()