다음을 통해 공유


IIkeSessionCallback.OnError(IkeException) Method

Definition

Called if a recoverable error is encountered in an established IkeSession.

[Android.Runtime.Register("onError", "(Landroid/net/ipsec/ike/exceptions/IkeException;)V", "GetOnError_Landroid_net_ipsec_ike_exceptions_IkeException_Handler:Android.Net.IpSec.Ike.IIkeSessionCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)]
public virtual void OnError (Android.Net.IpSec.Ike.Exceptions.IkeException exception);
[<Android.Runtime.Register("onError", "(Landroid/net/ipsec/ike/exceptions/IkeException;)V", "GetOnError_Landroid_net_ipsec_ike_exceptions_IkeException_Handler:Android.Net.IpSec.Ike.IIkeSessionCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=31)>]
abstract member OnError : Android.Net.IpSec.Ike.Exceptions.IkeException -> unit
override this.OnError : Android.Net.IpSec.Ike.Exceptions.IkeException -> unit

Parameters

exception
IkeException

the detailed error information.

Attributes

Remarks

Called if a recoverable error is encountered in an established IkeSession.

This method may be triggered by protocol errors such as an INVALID_IKE_SPI, or by non-protocol errors such as the underlying android.net.Network dying.

Java documentation for android.net.ipsec.ike.IkeSessionCallback.onError(android.net.ipsec.ike.exceptions.IkeException).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to