Class ErrorResponse
java.lang.Object
com.bobocode.bring.web.servlet.error.ErrorResponse
The ErrorResponse class represents an object containing details about an error response.
It includes information such as timestamp, error code, status, error message, and stack trace.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integer
The error code associated with the error response.private String
The error message providing additional information about the error.private String
The stack trace information indicating the sequence of method calls leading to the error.private String
The status message corresponding to the error code.private LocalDateTime
The timestamp indicating when the error response was created. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
timestamp
The timestamp indicating when the error response was created. -
code
The error code associated with the error response. -
status
The status message corresponding to the error code. -
message
The error message providing additional information about the error. -
stackTrace
The stack trace information indicating the sequence of method calls leading to the error.
-
-
Constructor Details
-
ErrorResponse
public ErrorResponse()
-