HttpService.HandleException(HttpException, IHttpResponse) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[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
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.