IkeIOException
public
final
class
IkeIOException
extends IkeNonProtocolException
| java.lang.Object | |||||
| ↳ | java.lang.Throwable | ||||
| ↳ | java.lang.Exception | ||||
| ↳ | android.net.ipsec.ike.exceptions.IkeException | ||||
| ↳ | android.net.ipsec.ike.exceptions.IkeNonProtocolException | ||||
| ↳ | android.net.ipsec.ike.exceptions.IkeIOException | ||||
Wrapper for I/O exceptions encountered during IKE operations.
Summary
Public constructors | |
|---|---|
IkeIOException(IOException cause)
Constructs a new exception with the specified cause. |
|
Public methods | |
|---|---|
IOException
|
getCause()
Returns the cause of this IkeIOException. |
Throwable
|
initCause(Throwable cause)
Initializes the cause of this throwable to the specified value. |
Inherited methods | |
|---|---|
Public constructors
IkeIOException
public IkeIOException (IOException cause)
Constructs a new exception with the specified cause.
Callers are not generally expected to instantiate this object themselves, except for
testing. A reference is passed via IkeSessionCallback or ChildSessionCallback.
| Parameters | |
|---|---|
cause |
IOException: the cause (which is saved for later retrieval by the getCause()
method).
This value cannot be null. |
Public methods
getCause
public IOException getCause ()
Returns the cause of this IkeIOException.
| Returns | |
|---|---|
IOException |
the cause of this IkeIOException. It might be a subclass of IOException that
represents a specific type of I/O issue. For example, UnknownHostException and
IkeTimeoutException.
This value cannot be null. |
initCause
public Throwable initCause (Throwable cause)
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(java.lang.Throwable) or
Throwable(java.lang.String, java.lang.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. |