Method | Description | |
---|---|---|
NullObject ( ) : Error |
Returns a default Error instance.
|
Method | 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.
|
Method | Description | |
---|---|---|
ErrorBase ( ) : System | ||
SetErrorMessage ( String localizationKey ) : void |
protected ErrorBase ( String localizationKey, HttpStatusCode httpStatusCode ) : System | ||
localizationKey | String | The localization key. |
httpStatusCode | HttpStatusCode | The HTTP status code. |
return | System |
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. |
return | System |
protected GetLocalizedErrorMessage ( String localizationKey ) : String | ||
localizationKey | String | The localization key. |
return | String |