ErrorHandling Members
Provides static members for the error handling in ASP.NET Web Forms applications.Constructors
Name | Description |
---|---|
ErrorHandling() | Initializes a new instance of the ErrorHandling class. |
Fields
Name | Description |
---|---|
ApplicationNameParameter | Specifies the name of the parameter, holding the application name. This parameter value is used in the default “From” field of the error notification e-mail. |
ConfigDetailedErrorReaderIPKeyName | Specifies the name of the configuration file key holding the IP address of the host, allowed to see the detailed error information. |
ConfigErrorReportEmailFromKeyName | Specifies the name of the configuration file key holding the e-mail, from which the error notifications are sent. |
ConfigErrorReportEmailFromNameKeyName | Specifies the name of the configuration file key holding the name, from which the error notifications are sent. |
ConfigErrorReportEmailKeyName | Specifies the name of the configuration file key holding the e-mail of the application administrator receiving the error alerts. |
ConfigErrorReportEmailServerKeyName | Specifies the name of the configuration file key holding the SMTP server name or IP address. This server is used to send error alerts to the application administrator. |
ConfigErrorReportEmailSubjectKeyName | Specifies the name of the configuration file key holding the error alert subject format string. |
ConfigErrorReportEnableSsl | Specifies the name of the configuration file key that sets whether the connection is encrypted when sending the error alert via e-mail. |
ConfigRichErrorReportPageKeyName | Specifies the name of the configuration file key holding the URL of the rich error page. |
ConfigSessionLostPageKeyName | Obsolete. For internal use only. |
ConfigSimpleErrorReportPageKeyName | Specifies the name of the configuration file key holding the URL of the simple error page. |
ErrorReportEmailFromDefault | Specifies the email address from which the error notification e-mails are sent, if the ErrorReportEmailFrom key value is not specified in the application configuration file. |
ErrorReportEmailFromNameDefault | Specifies the name from which the error notification e-mails are sent, if the ErrorReportEmailFromName key value is not specified in the application configuration file. |
ExceptionMessageParameter | Specifies the name of the parameter holding the exception message. This parameter value is used in the default subject of the error notification e-mail. |
Properties
Name | Description |
---|---|
CanSendAlertToAdmin static | Determines if it is possible to send an e-mail alert to the application administrator. |
CanShowDetailedInformation static | Determines if detailed error information should be shown. |
Instance static | Represents the instance of the ErrorHandling class. |
Methods
Name | Description |
---|---|
ClearApplicationError() static | Clears the application errors of the current context. |
ClearCachedPageError() | Clears the cached page error in the current context. |
ClearCachedPageError(Func<ErrorInfo, Boolean>) | |
ClearPageError() | Clears page errors in the current context. |
ClearPageError(Func<ErrorInfo, Boolean>) | |
Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals(Object) | Determines whether the specified object is equal to the current object. Inherited from Object. |
GetApplicationError() static | Gets the information on the application error that occurred in the current context. |
GetCachedPageError() | Gets the information on the cached page error that occurred in the current context. |
GetHashCode() | Serves as the default hash function. Inherited from Object. |
GetPageError() | Gets the information on the page error that occurred in the current context. |
GetType() | Gets the Type of the current instance. Inherited from Object. |
IsIgnoredException(Exception) static | Determines if the specified exception is ignored. |
MemberwiseClone() protected | Creates a shallow copy of the current Object. Inherited from Object. |
ProcessApplicationError() | Processes the last exception that occurred. |
ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from Object. |
SendAlertToAdmin(String, String, String, Exception) static | Sends an alert to the application administrator. |
SendAlertToAdmin(String, String, String) static | Sends an alert to the application administrator. |
SetPageError(Exception) | Handles the specified exception. |
ToString() | Returns a string that represents the current object. Inherited from Object. |
Events
Name | Description |
---|---|
CustomSendErrorNotification static | Occurs before determining whether it is possible to send the error alert to the application administrator. |
CustomSendMailMessage static | Occurs before e-mailing the error alert to the application administrator. |
NeedToCacheErrorInfo | Occurs before caching the error information. |
See Also