AbstractHandlerMethodMapping adds type+method info to getMappingForMethod exceptions

Issue: SPR-14452
This commit is contained in:
Juergen Hoeller 2016-07-13 15:42:34 +02:00
parent 84afc601b8
commit 8ccd727c9a
1 changed files with 7 additions and 1 deletions

View File

@ -231,7 +231,13 @@ public abstract class AbstractHandlerMethodMapping<T> extends AbstractHandlerMap
new MethodIntrospector.MetadataLookup<T>() {
@Override
public T inspect(Method method) {
return getMappingForMethod(method, userType);
try {
return getMappingForMethod(method, userType);
}
catch (Throwable ex) {
throw new IllegalStateException("Invalid mapping on handler class [" +
handlerType.getName() + "]: " + method, ex);
}
}
});