Lingua

HttpService.HandleException(HttpException, IHttpResponse) Metodo

Definizione

[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

Parametri

ex
HttpException

Eccezione HTTP per eseguire il mapping a uno stato di risposta: metodo non supportato a 501, versione HTTP non supportata a 505, errore del protocollo a 400 e altre eccezioni HTTP a 500.

response
IHttpResponse

Risposta il cui stato e l'entità vengono sostituiti. L'entità contiene il messaggio di eccezione come US-ASCII testo normale.

Attributi

Commenti

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a