Package io.domainlifecycles.spring.http
Class Error
java.lang.Object
io.domainlifecycles.spring.http.Error
General http response structure for errors.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Error
Creates a new Error instance with the specified error code and message.- Parameters:
code- the error codemessage- the error message
-
Error
public Error()Default constructor for the error class.
-
-
Method Details
-
getCode
Returns the error code- Returns:
- the error code
-
setCode
Sets the error code.- Parameters:
code- the error code to be set
-
getMessage
- Returns:
- the error message
-
setMessage
Sets the error message.- Parameters:
message- the error message to be set
-
equals
-
canEqual
- Parameters:
other- other Object to check- Returns:
- true, if other is an Error.
-
hashCode
public int hashCode() -
toString
-