Error handling - where to define messages [message #28462] |
Sat, 11 July 2009 09:10 |
Eclipse User |
|
|
|
Originally posted by: peter.backsti.annodi.edu
Hello
This is probably a LPG question, but I have not understod if IMP and LPG
are separated so I ask the question here - hope that this is OK.
I have been playing with IMP / LPG and found it very cool.
But my first trial lacks good error message, in fact almost useless.
So my question is perhaps rather basic; how can I generate better error
messages and where should I defined them?
Any help in this matter appreciated.
regards,
Peter
|
|
|
Re: Error handling - where to define messages [message #29097 is a reply to message #28462] |
Tue, 14 July 2009 16:49 |
Robert M. Fuhrer Messages: 294 Registered: July 2009 |
Senior Member |
|
|
Peter B wrote:
> Hello
>
> This is probably a LPG question, but I have not understod if IMP and LPG
> are separated so I ask the question here - hope that this is OK.
>
> I have been playing with IMP / LPG and found it very cool.
> But my first trial lacks good error message, in fact almost useless.
>
> So my question is perhaps rather basic; how can I generate better error
> messages and where should I defined them?
>
> Any help in this matter appreciated.
Yes, this is really an LPG question, and should be in a FAQ somewhere.
The short answer is that the interface ParseErrorCodes defines some
slightly more useful (but basic) messages for the various error codes,
which the error message-producing code (e.g. the MessageHandlerAdapter)
can use to generate better messages than the default.
I recently made some minor changes to MessageHandlerAdapter to make use
of the information in ParseErrorCodes, but the messages, though better,
are still obviously sub-optimal. Those changes are checked in, but not
released on the update site. I've also asked Philippe Charles (Mr. LPG)
for some more guidance as to how to get better messages by default.
Can you direct the question to the LPG forum at SourceForge (where LPG
lives)? I'll ping Philippe to make sure he sees it.
--
Cheers,
-- Bob
--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
|
|
|
Re: Error handling - where to define messages [message #29204 is a reply to message #29097] |
Wed, 15 July 2009 09:18 |
Eclipse User |
|
|
|
Originally posted by: peter.backsti.annodi.edu
Hi and thanks for reply!
I will send a post to the LPG people at SourceForge
BR
Peter
"Robert M. Fuhrer" <rfuhrer@watson.ibm.com> skrev i meddelandet
news:h3icuo$urh$1@build.eclipse.org...
> Peter B wrote:
>> Hello
>>
>> This is probably a LPG question, but I have not understod if IMP and LPG
>> are separated so I ask the question here - hope that this is OK.
>>
>> I have been playing with IMP / LPG and found it very cool.
>> But my first trial lacks good error message, in fact almost useless.
>>
>> So my question is perhaps rather basic; how can I generate better error
>> messages and where should I defined them?
>>
>> Any help in this matter appreciated.
>
> Yes, this is really an LPG question, and should be in a FAQ somewhere.
>
> The short answer is that the interface ParseErrorCodes defines some
> slightly more useful (but basic) messages for the various error codes,
> which the error message-producing code (e.g. the MessageHandlerAdapter)
> can use to generate better messages than the default.
>
> I recently made some minor changes to MessageHandlerAdapter to make use
> of the information in ParseErrorCodes, but the messages, though better,
> are still obviously sub-optimal. Those changes are checked in, but not
> released on the update site. I've also asked Philippe Charles (Mr. LPG)
> for some more guidance as to how to get better messages by default.
>
> Can you direct the question to the LPG forum at SourceForge (where LPG
> lives)? I'll ping Philippe to make sure he sees it.
>
> --
> Cheers,
> -- Bob
>
> --------------------------------
> Robert M. Fuhrer
> Research Staff Member
> Programming Technologies Dept.
> IBM T.J. Watson Research Center
>
> IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
> X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
|
|
|
Re: Error handling - where to define messages [message #575978 is a reply to message #28462] |
Tue, 14 July 2009 16:49 |
Robert M. Fuhrer Messages: 294 Registered: July 2009 |
Senior Member |
|
|
Peter B wrote:
> Hello
>
> This is probably a LPG question, but I have not understod if IMP and LPG
> are separated so I ask the question here - hope that this is OK.
>
> I have been playing with IMP / LPG and found it very cool.
> But my first trial lacks good error message, in fact almost useless.
>
> So my question is perhaps rather basic; how can I generate better error
> messages and where should I defined them?
>
> Any help in this matter appreciated.
Yes, this is really an LPG question, and should be in a FAQ somewhere.
The short answer is that the interface ParseErrorCodes defines some
slightly more useful (but basic) messages for the various error codes,
which the error message-producing code (e.g. the MessageHandlerAdapter)
can use to generate better messages than the default.
I recently made some minor changes to MessageHandlerAdapter to make use
of the information in ParseErrorCodes, but the messages, though better,
are still obviously sub-optimal. Those changes are checked in, but not
released on the update site. I've also asked Philippe Charles (Mr. LPG)
for some more guidance as to how to get better messages by default.
Can you direct the question to the LPG forum at SourceForge (where LPG
lives)? I'll ping Philippe to make sure he sees it.
--
Cheers,
-- Bob
--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
|
|
|
Re: Error handling - where to define messages [message #576034 is a reply to message #29097] |
Wed, 15 July 2009 09:18 |
Peter B Messages: 3 Registered: June 2010 |
Junior Member |
|
|
Hi and thanks for reply!
I will send a post to the LPG people at SourceForge
BR
Peter
"Robert M. Fuhrer" <rfuhrer@watson.ibm.com> skrev i meddelandet
news:h3icuo$urh$1@build.eclipse.org...
> Peter B wrote:
>> Hello
>>
>> This is probably a LPG question, but I have not understod if IMP and LPG
>> are separated so I ask the question here - hope that this is OK.
>>
>> I have been playing with IMP / LPG and found it very cool.
>> But my first trial lacks good error message, in fact almost useless.
>>
>> So my question is perhaps rather basic; how can I generate better error
>> messages and where should I defined them?
>>
>> Any help in this matter appreciated.
>
> Yes, this is really an LPG question, and should be in a FAQ somewhere.
>
> The short answer is that the interface ParseErrorCodes defines some
> slightly more useful (but basic) messages for the various error codes,
> which the error message-producing code (e.g. the MessageHandlerAdapter)
> can use to generate better messages than the default.
>
> I recently made some minor changes to MessageHandlerAdapter to make use
> of the information in ParseErrorCodes, but the messages, though better,
> are still obviously sub-optimal. Those changes are checked in, but not
> released on the update site. I've also asked Philippe Charles (Mr. LPG)
> for some more guidance as to how to get better messages by default.
>
> Can you direct the question to the LPG forum at SourceForge (where LPG
> lives)? I'll ping Philippe to make sure he sees it.
>
> --
> Cheers,
> -- Bob
>
> --------------------------------
> Robert M. Fuhrer
> Research Staff Member
> Programming Technologies Dept.
> IBM T.J. Watson Research Center
>
> IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
> X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
|
|
|
Powered by
FUDForum. Page generated in 0.03423 seconds