Added ExceptionUtils for getThrowableList
This commit is contained in:
9
pom.xml
9
pom.xml
@@ -18,7 +18,7 @@
|
||||
<inceptionYear>2012</inceptionYear>
|
||||
<groupId>com.github.raychatter</groupId>
|
||||
<artifactId>spring-restful-exception-handler</artifactId>
|
||||
<version>1.1.4</version>
|
||||
<version>1.1.4-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
@@ -66,7 +66,12 @@
|
||||
<artifactId>mockito-all</artifactId>
|
||||
<version>1.9.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>3.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -34,6 +34,8 @@ public class AnnotationHandler implements HandlerExceptionResolver {
|
||||
final Exception handledException = getHandledException(thrownException);
|
||||
final ExceptionHandler annotation = getAnnotationFrom(handledException);
|
||||
final Exception messageException = getMessageException(thrownException, handledException);
|
||||
// final StackTraceElement[] testStacktrace = handledException.getStackTrace();
|
||||
// final List<Throwable> throwableList = ExceptionUtils.getThrowableList(thrownException);
|
||||
|
||||
try {
|
||||
if (annotation == null) {
|
||||
|
||||
Reference in New Issue
Block a user