Package com.lpvs.exception
Class ErrorResponse
java.lang.Object
com.lpvs.exception.ErrorResponse
Represents an error response containing details about an encountered exception.
Instances of this class are typically returned as part of the application's error handling mechanism.
The error response includes a timestamp, error message, error code, and HTTP status code.
-
Constructor Summary
ConstructorsConstructorDescriptionErrorResponse
(String message, String code, int status) Constructs a new ErrorResponse with the specified message, code, and status. -
Method Summary
-
Constructor Details
-
ErrorResponse
Constructs a new ErrorResponse with the specified message, code, and status.- Parameters:
message
- The descriptive message providing information about the encountered error.code
- A specific code associated with the error, aiding in identifying and categorizing the error type.status
- The HTTP status code indicating the response status related to the error.
-