By UI side, do you mean the client, i.e. the Flash Player? If so, then
do you mean how do you intercept faults and rethrow custom errors?

Or... do you mean, how can you capture Java exceptions from RemoteObject
based services and re-throw a GatewayException to provide extra info
(like fault code, details, etc)?

 

-----Original Message-----
From: Jaime Bermudez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 12, 2005 12:34 PM
To: flexcoders@yahoogroups.com
Cc: Peter Farland
Subject: Re: [flexcoders] RemoteObject : Convert Java Exception to
ActionScript Fault

Hey Peter,

Do you have an example of how/where to create a thin layer on the UI
side to capture a Java Exception and re-throw a GatewayException?

Thanks,

Jaime

On 3/23/05, Peter Farland <[EMAIL PROTECTED]> wrote:
> 
> The documentation for Java based services is largely in the "Using
Data
> Services" section:
> 
> http://livedocs.macromedia.com/flex/15/flex_docs_en/00000742.htm
> 
> The Flash Remoting gateway did not include a way for users to
customize
> this error information, so this is not exposed in Flex 1.5 as its AMF
> gateway uses the same serialization rules for the Throwable type.
> 
> The type for an AMF gateway fault represents the class name of the
> exception. However, fault type information is not sent if the
> "show-stackstraces" setting is false in the
> /WEB-INF/flex/gateway-config.xml file. The purpose of this setting is
to
> hide the details of your system while in production (for obvious
> security reasons).
> 
> Your usage, however, sounds like a good use case and I'll add it as an
> enhancement request for the next version.
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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