5. Exception Handling - Confluence - 0 views
www.graniteds.org/...5.+Exception+Handling
graniteds ExceptionHandling javaee6 Flex ActionScript actionscript3

-
Exception Handling
- ...41 more annotations...
-
possible to define common handlers for particular fault codes on the client-side, and exception converters on the server-side, to convert server exceptions to common fault codes
-
t.getMessage(), detail, t
-
* instead of *wrapping* the server-side exception and rethrowing it to the client, ** extract only details relevant to the client (eg. include: human-friendly error message and any helpful parametrized data, exclude: stack traces), ** "wrap" it in a generic ServiceException, which gets "thrown" remotely to the client * client can check ServiceException.getCode() to implement behavior tailored to server-side exception 'type'
-
-
ENTITY_NOT_FOUND
-
all EntityNotFound exceptions on the server-side, and convert it to a proper ENTITY_NOT_FOUND fault event.
-
<exception-converters> <exception-converter type="com.package.SomeExceptionConverter"/> </exception-converters>
-
IExceptionHandler