Root > Reference > Events > TELEvCustomBugIDMeth

Type TELEvCustomBugIDMeth

Previous pageReturn to chapter overviewNext page   

Method event handler for OnCustomBugID event.







Code (Delphi)

TELEvCustomBugIDMeth = procedure(

AExceptionInfo: TEurekaExceptionInfo;

var ABugID, ACustomBugID: Word;

var ACallNextHandler: Boolean

) of object;



AExceptionInfo [in]

Information about exception.


ABugID [in, out]

Primary BugID generated by EurekaLog.


ACustomBugID [out]

Custom BugID.


ACallNextHandler [out]

True (default) - call next registered event handler, False - do not call next event handler.



Use this event handler to override BugID creation.


You can define your own sub-ID by altering ACustomBugID. Alternatively you may also replace BugID generated by EurekaLog.



Event handlers registered via TEurekaLogEvents component will be active only when corresponding form is live (created). Such handlers will not be called before form is created or after it was destroyed. For this reason you may want to register your event handlers via code. For example, it would be a bad idea to use TEurekaLogEvents component for implementing your error dialog, because your dialog will not be displayed for exceptions outside form (e.g. initialization/finalization exceptions, as well as exceptions in form's constructor).


See also

Send feedback... Build date: 2023-09-11
Last edited: 2023-09-11
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: