언어

HttpService.HandleException(HttpException, IHttpResponse) 메서드

정의

[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

매개 변수

ex
HttpException

응답 상태에 매핑할 HTTP 예외: 지원되지 않는 메서드를 501로, 지원되지 않는 HTTP 버전을 505로, 프로토콜 오류를 400으로, 기타 HTTP 예외를 500으로 설정합니다.

response
IHttpResponse

상태 및 엔터티가 대체되는 응답입니다. 엔터티에는 예외 메시지가 US-ASCII 일반 텍스트로 포함됩니다.

특성

설명

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상