Polished exception message

This commit is contained in:
Juergen Hoeller 2013-09-04 22:11:11 +02:00
parent c5aa0d12b0
commit 6110919842
1 changed files with 2 additions and 4 deletions

View File

@ -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 {
} }
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);
} }
} }