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

Method TExceptionManager.StandardEurekaNotify

Previous pageReturn to chapter overviewNext page   

Handle a specific exception.

 

Unit

EExceptionManager

 

Syntax

 

Code (Delphi)

public

function StandardEurekaNotify(

const Obj: TObject;

const Addr: Pointer = nil;

const AOptions: TEurekaModuleOptions = nil

): TResponse;

 

Parameters

Obj [in]

Exception object. Can be value from ExceptObject function.

 

Addr [in, optional]

Exception address. Can be value from ExceptAddr function.

 

AOptions [in, optional]

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

 

Return value

Result of exception's processing. See Handle and TResponse for more information.

 

Remarks

This is a simple combination of Info and Handle methods. This method is a tool for adding EurekaLog to unsupported applications types. You can call this method from your custom exception handler to invoke EurekaLog's processing.

 

This method is similar to ShowLastExceptionData, except it allows to specify exception object.

 

Tip

The diffrence between this method and the Handle method is this: Handle method will do nothing for non-raised exceptions. StandardEurekaNotify will create call stack for non-raised exceptions.

 

Examples

 

Code (Delphi)

try

// ... your code ...

except

ExceptionManager.StandardEurekaNotify(ExceptObject, ExceptAddr);

end;

 

Code (Delphi)

Thread := TMyThread.Create(False);

try

Thread.WaitFor;

ExceptionManager.StandardEurekaNotify(Thread.FatalException);

finally

FreeAndNil(Thread);

end;

 

Code (Delphi)

E := EMyException.Create('My Error Message');

try

ExceptionManager.StandardEurekaNotify(E);

finally

FreeAndNil(E);

end;

 

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_method_eexceptionmanager_texceptionmanager_standardeurekanotify.php