Root > Reference > All Classes > TExceptionManager > Methods > TExceptionManager.StandardEurekaError

Method TExceptionManager.StandardEurekaError

Previous pageReturn to chapter overviewNext page   

Invokes EurekaLog without raising exception.

 

Unit

EExceptionManager

 

Syntax

 

Code (Delphi)

public

function StandardEurekaError(

const Error: String;

const AOptions: TEurekaModuleOptions = nil

): TResponse;

 

Parameters

Error [in]

Error message to display in dialogs and report.

 

AOptions [in, optional]

EurekaLog options for this operation. Most important options are: csoShowRTLThreads, csoShowWindowsThreads and csoShowELThreads properties.

 

Return value

Result of processing. See Handle and TResponse for more information.

 

Remarks

This function creates exception of EEurekaLogGeneralError class and passes it to Handle method.

 

Use this method to invoke EurekaLog (i.e. show dialog, save report, send report) without actually raising exception. You can also setup exception filters or event handlers to alter processing behaviour of this "exception". Use EEurekaLogGeneralError class from EBase unit to differ this exception from typical exceptions.

 

The advantage of this function over usual raising method is that no exception will be raised at all (even though exception object will be created). Thus, you will save some performance and you also will not be disturbed by exception notification dialog from debugger.

 

Examples

 

Code (Delphi)

ExceptionManager.StandardEurekaError('File does not exist, unable to continue');

 

See also




Send feedback... Build date: 2024-09-30
Last edited: 2024-09-30
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_method_eexceptionmanager_texceptionmanager_standardeurekaerror.php