Update EvaluationException to expose the toDetailedString() method as
the exception message. The simple message can now be accessed via the
new getSimpleMessage() method.
Issue: SPR-10938
@ -87,6 +87,24 @@ public class ExpressionException extends RuntimeException {
@@ -87,6 +87,24 @@ public class ExpressionException extends RuntimeException {
@ -99,7 +117,7 @@ public class ExpressionException extends RuntimeException {
@@ -99,7 +117,7 @@ public class ExpressionException extends RuntimeException {
@ -545,20 +545,26 @@ public class SpelReproTests extends ExpressionTestCase {
@@ -545,20 +545,26 @@ public class SpelReproTests extends ExpressionTestCase {
@ -193,14 +193,14 @@ public class TemplateExpressionParsingTests extends ExpressionTestCase {
@@ -193,14 +193,14 @@ public class TemplateExpressionParsingTests extends ExpressionTestCase {
assertEquals("Found closing '}' at position 74 but most recent opening is '[' at position 30",pe.getMessage());
assertEquals("Found closing '}' at position 74 but most recent opening is '[' at position 30",pe.getSimpleMessage());
}
}
@ -235,20 +235,20 @@ public class TemplateExpressionParsingTests extends ExpressionTestCase {
@@ -235,20 +235,20 @@ public class TemplateExpressionParsingTests extends ExpressionTestCase {