Top Description Constructors Methods
org.jooq.exception

public Class IOException

extends DataAccessException
Class Inheritance

The jOOQ IOException is a wrapper for a java.io.IOException.
Author
Lukas Eder

Constructor Summary

AccessConstructor and Description
public
IOException(String
the detail message
message
,
IOException
the root cause (usually from using a underlying data access API such as JDBC)
cause
)

Constructor for DataAccessException.

Method Summary

Modifier and TypeMethod and Description
public synchronized IOException
getCause()

Overrides java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown.
public synchronized Throwable
initCause(Throwable
the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Overrides java.lang.Throwable.initCause.

Initializes the cause of this throwable to the specified value.
Inherited from org.jooq.exception.DataAccessException:
getCausegetStackTracesqlStatesqlStateClasssqlStateClasssqlStateClasssqlStateSubclass

Constructor Detail

IOExceptionback to summary
public IOException(String message, IOException cause)

Constructor for DataAccessException.

Parameters
message:String

the detail message

cause:IOException

the root cause (usually from using a underlying data access API such as JDBC)

Method Detail

getCauseback to summary
public synchronized IOException getCause()

Overrides java.lang.Throwable.getCause.

Doc from java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)

This implementation returns the cause that was supplied via one of the constructors requiring a Throwable, or that was set after creation with the initCause(Throwable) method. While it is typically unnecessary to override this method, a subclass can override it to return a cause set by some other means. This is appropriate for a "legacy chained throwable" that predates the addition of chained exceptions to Throwable. Note that it is not necessary to override any of the PrintStackTrace methods, all of which invoke the getCause method to determine the cause of a throwable.

Returns:IOException

the cause of this throwable or null if the cause is nonexistent or unknown.

Annotations
@Override
initCauseback to summary
public synchronized Throwable initCause(Throwable cause)

Overrides java.lang.Throwable.initCause.

Doc from java.lang.Throwable.initCause.

Initializes the cause of this throwable to the specified value. (The cause is the throwable that caused this throwable to get thrown.)

This method can be called at most once. It is generally called from within the constructor, or immediately after creating the throwable. If this throwable was created with Throwable(Throwable) or Throwable(String, Throwable), this method cannot be called even once.

An example of using this method on a legacy throwable type without other support for setting the cause is:

try {
    lowLevelOp();
} catch (LowLevelException le) {
    throw (HighLevelException)
          new HighLevelException().initCause(le); // Legacy constructor
}
Parameters
cause:Throwable

the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Returns:Throwable

a reference to this Throwable instance.

Annotations
@Override