語言

IIkeSessionCallback.OnError(IkeException) 方法

定義

若在已建立 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

參數

exception
IkeException

詳細的錯誤資訊。

屬性

備註

若在已建立 IkeSession的 中遇到可恢復的錯誤,則呼叫 。

此方法可能由協定錯誤(如INVALID_IKE_SPI)或非協定錯誤(如底層 android.net.Network 故障)觸發。

Java 文件 android.net.ipsec.ike.IkeSessionCallback.onError(android.net.ipsec.ike.exceptions.IkeException)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於