AbstractCMSPageLogAndShowError Method |
Logs the exception and displays a general error message
Namespace: CMS.UIControlsAssembly: CMS.UIControls (in CMS.UIControls.dll) Version: 10.0.0
Syntaxpublic void LogAndShowError(
string source,
string eventCode,
Exception ex,
bool showOriginalMessage = false
)
Parameters
- source
- Type: SystemString
Error source for the event log - eventCode
- Type: SystemString
Event code for the event log - ex
- Type: SystemException
Exception to log - showOriginalMessage (Optional)
- Type: SystemBoolean
If true, original exception message is shown
See Also