Thanks Tracy. Thats what I did for my solution. Although I was just curious if there is a way to handle the fault through the FaultEvent, which you just confirmed that there is no straight way.
Manu. Tracy Spratt wrote: > > The short answer is you can't. On fault, the browser does not pass that > information to the Flash Player. Some workarounds include causing the > server to return a different response code. Search the archives. I > handle all server exceptions on the sever, and then package the error in > xml that I return to the client. > > > > Tracy > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Manu Dhanda > Sent: Tuesday, September 18, 2007 5:08 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Getting error string in FaultEvent passed from > Server side > > > > > Hii > > I am unable to receive the error string passed from the Server side in > the > FaultEvent object. > Am using HttpService. > > From Server side, am throwing an error string like: > throw new ServletException("Some error string"); > > Now, how can I receive it in the Flex > private function faultHandler(event:FaultEvent){ > event.fault.???????; > } > > Can anyone guide me please. > > Thanks. > -- > View this message in context: > http://www.nabble.com/Getting-error-string-in-FaultEvent-passed-from-Ser > ver-side-tf4472831.html#a12752985 > <http://www.nabble.com/Getting-error-string-in-FaultEvent-passed-from-Se > rver-side-tf4472831.html#a12752985> > Sent from the FlexCoders mailing list archive at Nabble.com. > > > > > -- View this message in context: http://www.nabble.com/Getting-error-string-in-FaultEvent-passed-from-Server-side-tf4472831.html#a12789988 Sent from the FlexCoders mailing list archive at Nabble.com.