public class ExceptionTranslationAdvice extends Object implements ThrowsAdvice
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 and Description |
---|
ExceptionTranslationAdvice() |
Modifier and Type | Method and Description |
---|---|
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
|
public void afterThrowing(Throwable original) throws Throwable
original
- the thrown exceptionThrowable
- 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 setCopyright © 2014. All rights reserved.