Jazyk

HttpService.HandleException(HttpException, IHttpResponse) Method

Definition

[Android.Runtime.Register("handleException", "(Lorg/apache/http/HttpException;Lorg/apache/http/HttpResponse;)V", "GetHandleException_Lorg_apache_http_HttpException_Lorg_apache_http_HttpResponse_Handler")]
protected virtual void HandleException(Org.Apache.Http.HttpException? ex, Org.Apache.Http.IHttpResponse? response);
[<Android.Runtime.Register("handleException", "(Lorg/apache/http/HttpException;Lorg/apache/http/HttpResponse;)V", "GetHandleException_Lorg_apache_http_HttpException_Lorg_apache_http_HttpResponse_Handler")>]
abstract member HandleException : Org.Apache.Http.HttpException * Org.Apache.Http.IHttpResponse -> unit
override this.HandleException : Org.Apache.Http.HttpException * Org.Apache.Http.IHttpResponse -> unit

Parameters

ex
HttpException

The HTTP exception to map to a response status: unsupported method to 501, unsupported HTTP version to 505, protocol error to 400, and other HTTP exceptions to 500.

response
IHttpResponse

The response whose status and entity are replaced. The entity contains the exception message as US-ASCII plain text.

Attributes

Remarks

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