Added ExceptionUtils for getThrowableList

This commit is contained in:
raychatter
2013-01-16 17:20:05 -08:00
parent 65640be661
commit bca69232cb
2 changed files with 9 additions and 2 deletions

View File

@@ -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>

View File

@@ -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) {