Thanks !

Where can we find the documentation for the Java part of Flex ? I 
searched about Exception on Macromedia and Google and didn't find this ...

Last thing, now I'm able to set the code, detail and faultstring but I 
can't find a way to set the type. If it is not possible, it's not 
catastrophic but it should be nice to be able to set it ;-)

Peter Farland a �crit :
> The AMF Gateway uses a RuntimeException called flashgateway.GatewayException 
> that has these properties. A thin fa�ade could be built to map your exception 
> type to the gateway exception type.
> 
> 
> -----Original Message-----
> From: Laurent Cornelis [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 23, 2005 9:39 AM
> To: [email protected]
> Subject: [flexcoders] RemoteObject : Convert Java Exception to ActionScript 
> Fault
> 
> 
> 
> Hi,
> 
> I wonder how Java exceptions are mapped to ActionScript faults.
> 
> I created a subclass of exception in Java that has the following 
> properties :
> - message (from superclass Exception)
> - detail
> - type (I set the classname)
> - faultcode
> - description
> 
> When I throws this exception during a remote object call, the 
> event.fault has the following properties set :
> 
> - detail = ""
> - faultcode = "Server.Processing"
> - faultstring = "test"
> - type = ""
> 
> It means, only the faultstring is correct. The other properties are 
> ignored, and the faultcode is not the one I set.
> 
> Is there a way to specify other properties than faultstring in a 
> ActionScript fault object ?
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to