语言

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)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于