spring-framework / org.springframework.web.servlet.handler / SimpleMappingExceptionResolver / setExcludedExceptions

setExcludedExceptions

open fun setExcludedExceptions(vararg excludedExceptions: Class<*>): Unit

Set one or more exceptions to be excluded from the exception mappings. Excluded exceptions are checked first and if one of them equals the actual exception, the exception will remain unresolved.

Parameters

excludedExceptions - one or more excluded exception types