Root > Reference > All Functions > HandleException

Function HandleException

Previous pageReturn to chapter overviewNext page   

Handles exception.

 

Unit

EBase

 

Syntax

 

Code (Delphi)

function HandleException(

const E: TObject;

const AExpected: Boolean = False;

const AHandler: String = ''

): Integer;

 

Parameters

E [in]

Exception object to process. Does nothing for EAbort.

 

Return value

Error code from E. You can use this code to specify failure reason for thread, process, etc. This code is never equals 0.

 

Remarks

Handles (processes) the specified exception. It is usually means saving bug report, displaying EurekaLog's exception dialog, sending bug report, etc.

Note

If EurekaLog is installed - this function will redirect to ExceptionManager.Handle.

 

If EurekaLog is not installed - this function will show simple message box by using ApplicationShowException function (if it is not installed - then HandleException will show its own message box for Exception child classes and use ShowException for non-Exception classes).

 

 

See also




Send feedback... Build date: 2018-11-26
Last edited: 2018-11-26
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_function_ebase_handleexception.php