C# Класс CSharp.Bitbucket.Api.Impl.BitbucketErrorHandler

Implementation of the IResponseErrorHandler that handles errors from Bitbucket's REST API, interpreting them into appropriate exceptions.
Наследование: Spring.Rest.Client.Support.DefaultResponseErrorHandler
Показать файл Открыть проект

Открытые методы

Метод Описание
HandleError ( Uri requestUri, HttpMethod requestMethod, HttpResponseMessage response ) : void

Handles the error in the given response. This method is only called when HasError() method has returned .

This implementation throws appropriate exception if the response status code is a client code error (4xx) or a server code error (5xx).

Приватные методы

Метод Описание
HandleClientErrors ( HttpStatusCode statusCode ) : void
HandleServerErrors ( HttpStatusCode statusCode ) : void

Описание методов

HandleError() публичный Метод

Handles the error in the given response. This method is only called when HasError() method has returned .
This implementation throws appropriate exception if the response status code is a client code error (4xx) or a server code error (5xx).
public HandleError ( Uri requestUri, HttpMethod requestMethod, HttpResponseMessage response ) : void
requestUri System.Uri The request URI.
requestMethod HttpMethod The request method.
response HttpResponseMessage The response message with the error.
Результат void