|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExceptionTranslator
Strategy interface that allows for translation of known exception types into BlazeDS MessageExceptions that will propagate proper AMF error message back to the client.
Implementations are encouraged to set the code of the created MessageException to something more useful than the generic "Server.Processing" so that the client may reason on the code for custom fault handling logic.
Method Summary | |
---|---|
boolean |
handles(Class<?> clazz)
Checks if the translator can handle the specified exception class |
MessageException |
translate(Throwable t)
Translate the specified exception into an appropriate MessageException |
Method Detail |
---|
boolean handles(Class<?> clazz)
clazz
- the class of the exception
MessageException translate(Throwable t)
MessageException
t
- the original exception
|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |