|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.flex.core.ExceptionTranslationAdvice
public class ExceptionTranslationAdvice
Catches Throwable objects and looks for a registered ExceptionTranslator
that knows how to translate them to
more specific BlazeDS MessageExceptions to be re-thrown so that a proper AMF error will be sent back to the client.
If the caught object is an instance of MessageException
with the generic "Server.Processing" fault code, a
translator will be looked up for the root cause exception type rather than the generic wrapper MessageException.
Constructor Summary | |
---|---|
ExceptionTranslationAdvice()
|
Method Summary | |
---|---|
void |
afterThrowing(Throwable original)
Apply translation to the thrown exception. |
ExceptionLogger |
getExceptionLogger()
|
Set<ExceptionTranslator> |
getExceptionTranslators()
Returns the set of provided exception translators |
void |
setExceptionLogger(ExceptionLogger exceptionLogger)
|
void |
setExceptionTranslators(Set<ExceptionTranslator> translators)
Sets the provided exception translators |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionTranslationAdvice()
Method Detail |
---|
public void afterThrowing(Throwable original) throws Throwable
original
- the thrown exception
Throwable
- the translated exceptionpublic ExceptionLogger getExceptionLogger()
public void setExceptionLogger(ExceptionLogger exceptionLogger)
public Set<ExceptionTranslator> getExceptionTranslators()
public void setExceptionTranslators(Set<ExceptionTranslator> translators)
translators
- the exception translators to set
|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |