C# 클래스 Octopus.Client.Exceptions.OctopusExceptionFactory

Factory for mapping HTTP errors into Octopus exceptions.
파일 보기 프로젝트 열기: OctopusDeploy/Octo.exe

공개 메소드들

메소드 설명
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