commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar" <rahul.akol...@gmail.com>
Subject Re: [SCXML] Class cast due to "bad" test data [was Re: svn commit: r732174 -etc]
Date Wed, 07 Jan 2009 18:43:44 GMT
On Wed, Jan 7, 2009 at 10:59 AM, sebb <sebbaz@gmail.com> wrote:
> On 07/01/2009, Rahul Akolkar <rahul.akolkar@gmail.com> wrote:
<snip/>
>>
>>  I see, r731781. Its an authoring error but yes, a CCE is bogus. I
>>  think the related catches in r731781 should be for a generic Exception
>>  (since theoretically any Java method could be executed as part of the
>>  expression evaluation).
>
> So how can one then detect such errors?
> Or maybe that is not important?
>
<snap/>

One gets notified on the ErrorReporter (the application-specific
implementation can then do what it deems best). Any exception during
expression evaluation should therefore be wrapped in the
SCXMLExpressionException. I've made the change in SVN.

-Rahul


> Either way, ISTM that there should be a test case for such authoring errors.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message