Click or drag to resize
AbstractCMSPageLogAndShowError Method
Logs the exception and displays a general error message

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 9.0.0
Syntax
C#
public 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