C# Класс Octopus.Client.Exceptions.OctopusExceptionFactory

Factory for mapping HTTP errors into Octopus exceptions.
Показать файл Открыть проект

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

Метод Описание
CreateException ( WebException webException, HttpWebResponse response ) : OctopusException

Creates the appropriate OctopusException from a HTTP response.

CreateException ( HttpResponseMessage response ) : Task

Creates the appropriate OctopusException from a HTTP response.

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

Метод Описание
CreateException ( int statusCode, string body ) : OctopusException
GetErrorMessage ( string body ) : string

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

CreateException() публичный статический Метод

Creates the appropriate OctopusException from a HTTP response.
public static CreateException ( WebException webException, HttpWebResponse response ) : OctopusException
webException System.Net.WebException The web exception.
response System.Net.HttpWebResponse The response.
Результат OctopusException

CreateException() публичный статический Метод

Creates the appropriate OctopusException from a HTTP response.
public static CreateException ( HttpResponseMessage response ) : Task
response System.Net.Http.HttpResponseMessage The response.
Результат Task