|
If you are talking about the fill method
on the flex.data.assemblers.Assembler interface, yeah by the rules of Java it
can only throw runtime exceptions (those exceptions which extend from
java.lang.RuntimeException). You can add another method on your class with a
different method signature that does not conflict with any method on the
Assembler interface that returns a Collection. Then add a fill-method tag in
your data-management-services.xml file which points to this method (just as
though you did not implement the Assembler interface). That method can then
throw whatever exception it wants, even those that extend from Exception as it
is invoked via reflection. When you have a fill-method tag in the
definition file that matches the fill call on the client, it will be called
instead of the Assembler interface method’s fill call. Jeff From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Hi, Are you looking to have the exception be returned to the client?
From: Is there
a way to throw custom exception from Assembler.fill( -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |

