Class Error
java.lang.Object
org.springframework.boot.web.error.Error
- All Implemented Interfaces:
MessageSourceResolvable
A wrapper class for
MessageSourceResolvable
errors that is safe for JSON
serialization.- Since:
- 3.5.0
- Author:
- Yongjun Hong, Phillip Webb
-
Method Details
-
getCodes
- Specified by:
getCodes
in interfaceMessageSourceResolvable
-
getArguments
- Specified by:
getArguments
in interfaceMessageSourceResolvable
-
getDefaultMessage
- Specified by:
getDefaultMessage
in interfaceMessageSourceResolvable
-
getCause
Return the original cause of the error.- Returns:
- the error cause
-
equals
-
hashCode
public int hashCode() -
toString
-
wrap
Wrap the given errors.- Parameters:
errors
- the errors to wrap- Returns:
- a new Error list
-