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 = nil;

const AExpected: Boolean = False;

const AHandler: String = '';

const AExceptionAddress: Pointer = nil

): Integer;

 

Parameters

E [in, optional]

Exception object to process. Default is nil. If this parameter is not specified, the return value of ExceptObject will be used. Does nothing for EAbort.

 

Return value

Error code for the E argument. You can use this code to specify failure reason for thread, process, etc. This code is never equals 0, unless there is no exception.

 

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: 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_function_ebase_handleexception.php