Polished exception message
This commit is contained in:
parent
c5aa0d12b0
commit
6110919842
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue