Created
November 4, 2017 14:47
-
-
Save Arsenalist/32b9e8351e02d4b03efe8664bc553a82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: frontier/backendservice-parent/backendservice-common/src/main/java/com/frontier/exception/common/GlobalBEControllerExceptionHandler.java | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- frontier/backendservice-parent/backendservice-common/src/main/java/com/frontier/exception/common/GlobalBEControllerExceptionHandler.java (date 1509037066000) | |
+++ frontier/backendservice-parent/backendservice-common/src/main/java/com/frontier/exception/common/GlobalBEControllerExceptionHandler.java (revision ) | |
@@ -125,7 +125,7 @@ | |
private ErrorDto createDefaultErrorInfoObject(Exception exception) { | |
String message = StringUtils.isEmpty(exception.getMessage()) ? DEFAULT_ERROR_MESSAGE : exception.getMessage(); | |
- return new ErrorDto(message, ExceptionUtils.getStackTrace(exception)); | |
+ return new ErrorDto(message, ExceptionUtils.getStackTrace(exception.getCause() != null ? exception.getCause() : exception)); | |
} | |
private String composeFriendlyMessageForCalculationException(CalculationFlowException exception) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment