PDA

View Full Version : Tab Exeptions


Gert Hoogeboom
29-Nov-2005, 11:28 AM
Hello,

I have just started wit EurelaLog and I have a question :

When I add exeptions to the EurekaOptions tab Exeptions.

This means that the error that is displayed is replaced bij the text that I
filled in under Message field.

Is it possible to use the same message but to replace the text bij the
original delphi exceptions. ( In case of a Econvert Error i would like to
specify witch error it was a date of integer etc )

Thanks in advance

Gert Hoogeboom
Holland

admin
30-Nov-2005, 09:30 AM
Hi,

Gert Hoogeboom wrote:
> Hello,
>
> I have just started wit EurelaLog and I have a question :
>
> When I add exeptions to the EurekaOptions tab Exeptions.
>
> This means that the error that is displayed is replaced bij the text that I
> filled in under Message field.
>
> Is it possible to use the same message but to replace the text bij the
> original delphi exceptions. ( In case of a Econvert Error i would like to
> specify witch error it was a date of integer etc )
>
> Thanks in advance
>
> Gert Hoogeboom
> Holland

No, it's impossible.
To obtain this I suggest to you to use an ExceptionNotify event like the
following:

//----------------------------------------------------------------------

Uses
ExceptionLog; // Required unit.

procedure ExceptionNotify(EurekaExceptionRecord: TEurekaExceptionRecord;
var Handled: Boolean);
var
Error: EConvertError;
begin
if (EurekaExceptionRecord.ExceptionObject is EConvertError) then
begin
Error := EConvertError(EurekaExceptionRecord.ExceptionObjec t);
Error.Message := 'YOURMESSAGE TEXT HERE!!!';
end;
end;

//----------------------------------------------------------------------

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!

Gert Hoogeboom
30-Nov-2005, 04:28 PM
Is it something to add in a new version ?

The display message would then be the text under message field + the custom
Delphi message ?

Gert Hoogeboom

"admin" <support@eurekalog.com> schreef in bericht
news:dmjutf$qrs$1@plesk.eurekalog.com...
> Hi,
>
> Gert Hoogeboom wrote:
>> Hello,
>>
>> I have just started wit EurelaLog and I have a question :
>>
>> When I add exeptions to the EurekaOptions tab Exeptions.
>>
>> This means that the error that is displayed is replaced bij the text that
>> I filled in under Message field.
>>
>> Is it possible to use the same message but to replace the text bij the
>> original delphi exceptions. ( In case of a Econvert Error i would like to
>> specify witch error it was a date of integer etc )
>>
>> Thanks in advance
>>
>> Gert Hoogeboom
>> Holland
>
> No, it's impossible.
> To obtain this I suggest to you to use an ExceptionNotify event like the
> following:
>
> //----------------------------------------------------------------------
>
> Uses
> ExceptionLog; // Required unit.
>
> procedure ExceptionNotify(EurekaExceptionRecord: TEurekaExceptionRecord;
> var Handled: Boolean);
> var
> Error: EConvertError;
> begin
> if (EurekaExceptionRecord.ExceptionObject is EConvertError) then
> begin
> Error := EConvertError(EurekaExceptionRecord.ExceptionObjec t);
> Error.Message := 'YOURMESSAGE TEXT HERE!!!';
> end;
> end;
>
> //----------------------------------------------------------------------
>
> --
> Best regards...
>
> Fabio Dell'Aria.
> ----------------
> http://www.eurekalog.com
> Catch every BUG, every time!

admin
01-Dec-2005, 08:09 AM
Hi,

Gert Hoogeboom wrote:
> Is it something to add in a new version ?
>
> The display message would then be the text under message field + the custom
> Delphi message ?
>
> Gert Hoogeboom
>
> [...]

Yes, it's possible! :)

--
Best regards...

Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!