1 Reply Latest reply on Aug 29, 2008 2:05 AM by Newsgroup_User

    PHP exception code in FaultEvent?

    gbruins
      Hi-

      The PHP exception code doesn't seem to get mapped into a FaultEvent...only the exception *message* seems to be available in a FaultEvent. I was hoping to use an exception code in a FaultEvent to drive logic in Flex (i.e if code == 100, then x, if code == 200, then y, etc).

      Am I correct in assuming that the PHP exception code does not get mapped into a FaultEvent? If so, how are other people using FaultEvents to drive logic decisions in Flex?

      One idea I had was to use a serialized object as the PHP exception message, and unserialize the resulting FaultEvent->faultDetail message in Flex. This method works OK, but I was hoping for a more elegant solution.

      Thanks!
      Greg