Class ErrorResponse

java.lang.Object
com.bobocode.bring.web.servlet.error.ErrorResponse

public class ErrorResponse extends Object
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 Details

    • timestamp

      private LocalDateTime timestamp
      The timestamp indicating when the error response was created.
    • code

      private Integer code
      The error code associated with the error response.
    • status

      private String status
      The status message corresponding to the error code.
    • message

      private String message
      The error message providing additional information about the error.
    • stackTrace

      private String stackTrace
      The stack trace information indicating the sequence of method calls leading to the error.
  • Constructor Details

    • ErrorResponse

      public ErrorResponse()