提交 61109198 编写于 作者: J Juergen Hoeller

Polished exception message

上级 c5aa0d12
...@@ -109,7 +109,7 @@ public class MethodReference extends SpelNodeImpl { ...@@ -109,7 +109,7 @@ public class MethodReference extends SpelNodeImpl {
throwSimpleExceptionIfPossible(value, ae); throwSimpleExceptionIfPossible(value, ae);
// At this point we know it wasn't a user problem so worth a retry if a // At this point we know it wasn't a user problem so worth a retry if a
// better candidate can be found // better candidate can be found.
this.cachedExecutor = null; this.cachedExecutor = null;
} }
} }
...@@ -217,9 +217,7 @@ public class MethodReference extends SpelNodeImpl { ...@@ -217,9 +217,7 @@ public class MethodReference extends SpelNodeImpl {
} }
throw new ExpressionInvocationTargetException(getStartPosition(), throw new ExpressionInvocationTargetException(getStartPosition(),
"A problem occurred when trying to execute method '" + this.name + "A problem occurred when trying to execute method '" + this.name +
"' on object of type '" + "' on object of type [" + value.getClass().getName() + "]", rootCause);
value.getClass().getName() + "'",
rootCause);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册