C# 클래스 NContext.ErrorHandling.ErrorBase

Defines an abstraction for localized application errors.
파일 보기 프로젝트 열기: PowerDMS/NContext

공개 메소드들

메소드 설명
NullObject ( ) : Error

Returns a default Error instance.

보호된 메소드들

메소드 설명
ErrorBase ( String localizationKey, HttpStatusCode httpStatusCode ) : System

Initializes a new instance of the ErrorBase class.

ErrorBase ( String localizationKey, HttpStatusCode httpStatusCode, String code ) : System

Initializes a new instance of the ErrorBase class.

GetLocalizedErrorMessage ( String localizationKey ) : String

Gets the localized error message.

비공개 메소드들

메소드 설명
ErrorBase ( ) : System
SetErrorMessage ( String localizationKey ) : void

메소드 상세

ErrorBase() 보호된 메소드

Initializes a new instance of the ErrorBase class.
protected ErrorBase ( String localizationKey, HttpStatusCode httpStatusCode ) : System
localizationKey String The localization key.
httpStatusCode HttpStatusCode The HTTP status code.
리턴 System

ErrorBase() 보호된 메소드

Initializes a new instance of the ErrorBase class.
protected ErrorBase ( String localizationKey, HttpStatusCode httpStatusCode, String code ) : System
localizationKey String The localization key.
httpStatusCode HttpStatusCode The HTTP status code.
code String A unique code that represents the reason for the error.
리턴 System

GetLocalizedErrorMessage() 보호된 메소드

Gets the localized error message.
protected GetLocalizedErrorMessage ( String localizationKey ) : String
localizationKey String The localization key.
리턴 String

NullObject() 공개 정적인 메소드

Returns a default Error instance.
public static NullObject ( ) : Error
리턴 Error