Class DefaultErrorAttributes

java.lang.Object
org.springframework.boot.web.servlet.error.DefaultErrorAttributes
All Implemented Interfaces:
ErrorAttributes, Ordered, HandlerExceptionResolver

@Order(-2147483648) public class DefaultErrorAttributes extends Object implements ErrorAttributes, HandlerExceptionResolver, Ordered
Default implementation of ErrorAttributes. Provides the following attributes when possible:
  • timestamp - The time that the errors were extracted
  • status - The status code
  • error - The error reason
  • exception - The class name of the root exception (if configured)
  • message - The exception message (if configured)
  • errors - Any ObjectErrors from a BindingResult exception (if configured)
  • trace - The exception stack trace (if configured)
  • path - The URL path when the exception was raised
Since:
2.0.0
Author:
Phillip Webb, Dave Syer, Stephane Nicoll, Vedran Pavic, Scott Frederick, Moritz Halbritter
See Also: