View Full Version : How to create exception filter for 'raise Exception.Create(...)'
mikeho
07-Jun-2007, 08:12 PM
The application I am working on makes heavy use of:
raise Exception.Create('Some message to user');
statements through out the code. How can I create an Exception filter for EurekaLog to ignore these statements?
Thanks,
Mike
admin
12-Jun-2007, 02:43 PM
I suggest you to create a specific new Exception type to do this works.
Example:
Type
ExceptionError = Class(Exception);
begin
...
raise ExceptionError.Create('Error message here!!!');
...
end;
So you can simply instruct EurekaLog to ignore any ExceptionError exception types.
To do this you can create a new exception filter from "Project/EurekaLog Options/Exception Filters/Add" and using as "Exception Type" the ExceptionError string.
I hope to have answered to your question, otherwise don't hesitate to recontact me shortly, OK' ;-)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.