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

setExceptionAttribute

open fun setExceptionAttribute(@Nullable exceptionAttribute: String): Unit

Set the name of the model attribute as which the exception should be exposed. Default is "exception".

This can be either set to a different attribute name or to null for not exposing an exception attribute at all.

See Also
#DEFAULT_EXCEPTION_ATTRIBUTE