content: package com.taskmanager.taskmanager.exception;
  
  import java.time.LocalDateTime;
  import java.util.List;
  
  import com.fasterxml.jackson.annotation.JsonFormat;
  
  public class ErrorResponse {
  
      @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy hh:mm:ss")
      private LocalDateTime timestamp;
      private List<String> messages;
      private int status;
  
      public ErrorResponse() {
      }
  
      public ErrorResponse(int status) {
          this.status = status;
      }
  
      public ErrorResponse(List<String> messages, int status) {
          this.timestamp = LocalDateTime.now();
          this.messages = messages;
          this.status = status;
      }
  
      public LocalDateTime getTimestamp() {
          return this.timestamp;
      }
  
      public void setTimestamp(LocalDateTime timestamp) {
          this.timestamp = timestamp;
      }
  
      public List<String> getMessages() {
          return this.messages;
      }
  
      public void setMessages(List<String> messages) {
          this.messages = messages;
      }
  
  
      public int getStatus() {
          return this.status;
      }
  
      public void setStatus(int status) {
          this.status = status;
      }
  
  }
  