| Key points: |
- This sample shows how you can, on the server side, intercept .NET exceptions and throw, instead, WebORB-derived exceptions.
- This could be handy in many situations, such as when you wanted to prevent server-side stack-trace information from being available to the client.
- The Flex client calls BasicCalcServer's Divide() method.
- Divide() is identical to Quotient(), except that:
- If a arithmetic exception (such as division by zero) occurs,
- Then that exception is caught and a Weborb.Exceptions.ServiceException is thrown instead.
- This, in effect, replaces a detailed .NET exception with a detail-less WebORB exception.
|