Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Improve Error messages from SWT


Hi, Tom.
This sounds like a good idea.
Can you please open a bug report (Eclipse - Platform - SWT), and you can assign it directly to me (Carolyn_MacLeod@xxxxxxxxxx).
It won't happen for 3.3, but we'll look at improving error messages for 3.4.
Thanks!
Carolyn




Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

05/10/2007 06:02 AM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] Improve Error messages from SWT





Hi,

Just because I looked at a JFace-Bug-Report today I noticed that the
error message given from SWT could be improved e.g. take this bug report
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=186325). The SWT-Error
given doesn't tell anything about the cause of the problem. I think the
problem is a disposed font but if the error message would have been:

------------8<------------
java.lang.IllegalArgumentException: Argument not valid (Font passed is
disposed)
...
------------8<------------

This would make spotting the culprit much easier. My question is now do
you think it is worth the effort and I should log a bug and provide
better error messages using SWT.error(SWT.ERROR_INVALID_ARGUMENT,null, "
(Font passed is disposed)").

Thanks

Tom

--
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl    leiter softwareentwicklung/CSE   mobile  ++43 676 3232147
------------------------------------------------------------------------
eduard-bodem-gasse 8/3    A-6020 innsbruck      fax      ++43 512 935833
http://www.bestsolution.at                      phone    ++43 512 935834

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

Attachment: signature.asc
Description: Binary data


Back to the top