diff --git a/pom.xml b/pom.xml index 4db499c..a4bc58c 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ 2012 com.github.raychatter spring-restful-exception-handler - 1.1.4 + 1.1.4-SNAPSHOT jar @@ -66,7 +66,12 @@ mockito-all 1.9.0 test - + + + org.apache.commons + commons-lang3 + 3.1 + diff --git a/src/main/java/com/github/raychatter/AnnotationHandler.java b/src/main/java/com/github/raychatter/AnnotationHandler.java index 1d8b6df..365cb6d 100644 --- a/src/main/java/com/github/raychatter/AnnotationHandler.java +++ b/src/main/java/com/github/raychatter/AnnotationHandler.java @@ -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 throwableList = ExceptionUtils.getThrowableList(thrownException); try { if (annotation == null) {