Class ApiErrorResponse
java.lang.Object
com.samupert.univpm.eurostat.common.ApiErrorResponse
Class that represent an API error response.
-
Constructor Summary
ConstructorDescriptionApiErrorResponse
(org.springframework.http.HttpStatus status, String error) Creates a new API error response. -
Method Summary
-
Constructor Details
-
ApiErrorResponse
Creates a new API error response.- Parameters:
status
- The HTTP status code.error
- The error message.
-
-
Method Details
-
timestamp
Gets the timestamp of the error.- Returns:
- Returns the timestamp of the error.
-
status
public org.springframework.http.HttpStatus status()Gets the Http status code. SeeHttpStatus
.- Returns:
- Returns the HTTP status code.
-
error
Gets the error message.- Returns:
- Returns the error message.
-
equals
-
hashCode
public int hashCode() -
toString
-