Handle a specific exception.
Unit
EExceptionManager
Syntax
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: 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_standardeurekanotify.php
|
|