[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.imp] Re: Error handling - where to define messages

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)