Summary
Used when an unhandled exception occurs in an System.AppDomain
.
Syntax
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "We're doing exception handling here, we don't really want anything to escape.")]
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "This class is embedded in an user assembly and called from there. Hence all methods are internal.")]
public void OnException(Exception exception)
Attributes
Type |
Description |
SuppressMessageAttribute |
|
SuppressMessageAttribute |
|
Parameters
Name |
Type |
Description |
exception |
Exception |
The exception that was thrown. |
Return Value