C# 클래스 Stumps.Web.ErrorStatusCodeHandler

A class that provides an implementation of the Nancy status code handler.
상속: IStatusCodeHandler
파일 보기 프로젝트 열기: Cayan-LLC/stumps

공개 메소드들

메소드 설명
Handle ( HttpStatusCode statusCode, Nancy.NancyContext context ) : void

Handle the error code.

HandlesStatusCode ( HttpStatusCode statusCode, Nancy context ) : bool

Check if the error handler can handle errors of the provided status code.

비공개 메소드들

메소드 설명
ShouldReturnFriendlyErrorPage ( Nancy.NancyContext context ) : bool

Determines if a friendly error page should be returned for a T:Nancy.NancyContext.

메소드 상세

Handle() 공개 메소드

Handle the error code.
is null.
public Handle ( HttpStatusCode statusCode, Nancy.NancyContext context ) : void
statusCode HttpStatusCode The HTTP status code.
context Nancy.NancyContext Current context of the request.
리턴 void

HandlesStatusCode() 공개 메소드

Check if the error handler can handle errors of the provided status code.
public HandlesStatusCode ( HttpStatusCode statusCode, Nancy context ) : bool
statusCode HttpStatusCode The HTTP status code.
context Nancy The instance of the current request.
리턴 bool