Added in API level 33

IkeIOException


class IkeIOException : IkeNonProtocolException
kotlin.Any
   ↳ kotlin.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

Constructs a new exception with the specified cause.

Public methods
Throwable

Properties
IOException

Returns the cause of this IkeIOException.

Public constructors

IkeIOException

Added in API level 33
IkeIOException(cause: IOException)

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

initCause

Added in API level 33
fun initCause(cause: Throwable?): Throwable
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.)
Return
Throwable a reference to this Throwable instance.
Exceptions
java.lang.IllegalArgumentException if cause is this throwable. (A throwable cannot be its own cause.)
java.lang.IllegalStateException if this throwable was created with Throwable(java.lang.Throwable) or Throwable(java.lang.String,java.lang.Throwable), or this method has already been called on this throwable.

Properties

cause

Added in API level 33
val cause: IOException

Returns the cause of this IkeIOException.

Return
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.