C# Class NContext.ErrorHandling.ErrorBase

Defines an abstraction for localized application errors.
Afficher le fichier Open project: PowerDMS/NContext

Méthodes publiques

Méthode Description
NullObject ( ) : Error

Returns a default Error instance.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
ErrorBase ( ) : System
SetErrorMessage ( String localizationKey ) : void

Method Details

ErrorBase() protected méthode

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.
Résultat System

ErrorBase() protected méthode

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.
Résultat System

GetLocalizedErrorMessage() protected méthode

Gets the localized error message.
protected GetLocalizedErrorMessage ( String localizationKey ) : String
localizationKey String The localization key.
Résultat String

NullObject() public static méthode

Returns a default Error instance.
public static NullObject ( ) : Error
Résultat Error