Skip to content

Instantly share code, notes, and snippets.

@Arsenalist
Created November 4, 2017 14:47
Show Gist options
  • Save Arsenalist/32b9e8351e02d4b03efe8664bc553a82 to your computer and use it in GitHub Desktop.
Save Arsenalist/32b9e8351e02d4b03efe8664bc553a82 to your computer and use it in GitHub Desktop.
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