public Map<String, String> getMethodJavadocThrows(Method method) {
		return RuntimeJavadoc.getJavadoc(method)
				.getThrows()
				.stream()
				.collect(toMap(ThrowsJavadoc::getName, javadoc -> formatter.format(javadoc.getComment())));
	}
Gets method throws declaration.

@param method the method
@return the method throws (name-description map)
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringDocJavadocProvider.java