for (RespStatusMapping respStatusMapping : respStatusMappings.value()) {
Class<? extends Throwable> exceptionClass = respStatusMapping.exception();
checkMethodException(method, exceptionClass);
statusExceptionMappings.put(respStatusMapping.status(), exceptionClass);
}
<BUG>}
private void checkMethodException(Method method,
Class<? extends Throwable> exceptionClass) {</BUG>
if (RuntimeException.class.isAssignableFrom(exceptionClass)) return;
for (Class<?> declaredExceptionType : method.getExceptionTypes()) {

for (RespStatusMapping respStatusMapping : respStatusMappings.value()) {
Class<? extends Throwable> exceptionClass = respStatusMapping.exception();
checkMethodException(method, exceptionClass);
statusExceptionMappings.put(respStatusMapping.status(), exceptionClass);
}
}
private void checkMethodException(Method method, Class<? extends Throwable> exceptionClass) {
if (RuntimeException.class.isAssignableFrom(exceptionClass)) return;
for (Class<?> declaredExceptionType : method.getExceptionTypes()) {
