Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » Error handling - where to define messages
Error handling - where to define messages [message #28462] Sat, 11 July 2009 09:10 Go to next message
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 Go to previous messageGo to next message
Robert M. Fuhrer is currently offline 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 Go to previous message
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 Go to previous message
Robert M. Fuhrer is currently offline 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 Go to previous message
Peter B is currently offline 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)
Previous Topic:Possible performance bug in LPG?
Next Topic:New release of IMP available on eclipse.org
Goto Forum:
  


Current Time: Thu Oct 30 19:07:51 GMT 2014

Powered by FUDForum. Page generated in 0.04190 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software