C# 클래스 PhotoSharingApp.AppService.ServiceCore.ServiceFault

Helper class for instantiating errors returned. from the service.
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing 1 사용 예제들

공개 메소드들

메소드 설명
BadRequest ( string source, ushort code, string description ) : HttpResponseException

Creates a fault exception with the HTTP status code 400.

Forbidden ( string source, ushort code, string description ) : HttpResponseException

Creates a fault exception with the HTTP status code 403.

InternalServerError ( string source, ushort code, string description ) : HttpResponseException

Creates a fault exception with the HTTP status code 500.

NotFound ( string source, ushort code, string description ) : HttpResponseException

Creates a fault exception with the HTTP status code 404.

ServiceUnavailable ( string source, ushort code, string description ) : HttpResponseException

Creates a fault exception with the HTTP status code 503.

Unauthorized ( string source, ushort code, string description ) : HttpResponseException

Creates a fault exception with the HTTP status code 401.

비공개 메소드들

메소드 설명
Create ( HttpStatusCode statusCode, ServiceFaultContract fault ) : HttpResponseException
Create ( HttpStatusCode statusCode, string source, ushort code, string description ) : HttpResponseException

메소드 상세

BadRequest() 공개 정적인 메소드

Creates a fault exception with the HTTP status code 400.
public static BadRequest ( string source, ushort code, string description ) : HttpResponseException
source string The source of the fault.
code ushort The code of the fault.
description string A human-readable description of what went wrong.
리턴 HttpResponseException

Forbidden() 공개 정적인 메소드

Creates a fault exception with the HTTP status code 403.
public static Forbidden ( string source, ushort code, string description ) : HttpResponseException
source string The source of the fault.
code ushort The code of the fault.
description string A human-readable description of what went wrong.
리턴 HttpResponseException

InternalServerError() 공개 정적인 메소드

Creates a fault exception with the HTTP status code 500.
public static InternalServerError ( string source, ushort code, string description ) : HttpResponseException
source string The source of the fault.
code ushort The code of the fault.
description string A human-readable description of what went wrong.
리턴 HttpResponseException

NotFound() 공개 정적인 메소드

Creates a fault exception with the HTTP status code 404.
public static NotFound ( string source, ushort code, string description ) : HttpResponseException
source string The source of the fault.
code ushort The code of the fault.
description string A human-readable description of what went wrong.
리턴 HttpResponseException

ServiceUnavailable() 공개 정적인 메소드

Creates a fault exception with the HTTP status code 503.
public static ServiceUnavailable ( string source, ushort code, string description ) : HttpResponseException
source string The source of the fault.
code ushort The code of the fault.
description string A human-readable description of what went wrong.
리턴 HttpResponseException

Unauthorized() 공개 정적인 메소드

Creates a fault exception with the HTTP status code 401.
public static Unauthorized ( string source, ushort code, string description ) : HttpResponseException
source string The source of the fault.
code ushort The code of the fault.
description string A human-readable description of what went wrong.
리턴 HttpResponseException