HttpException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
HttpException(IntPtr, JniHandleOwnership)
protected HttpException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Net.Http.HttpException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Net.Http.HttpException
参数
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
适用于
HttpException(String, Throwable)
构造由 cause.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=34)]
public HttpException(string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=34)>]
new Android.Net.Http.HttpException : string * Java.Lang.Throwable -> Android.Net.Http.HttpException
参数
- message
- String
失败说明。
- cause
- Throwable
原因(此方法保存供以后检索 java.io.IOException#getCause getCause() )。 允许空值,并指示原因不存在或未知。
- 属性
注解
构造由 cause.
Java文档android.net.http.HttpException.HttpException(java.lang.String, java.lang.Throwable)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。