content: package com.example.auction.dto;
  
  import java.time.LocalDateTime;
  import java.util.Map;
  
  public class ErrorResponse {
      private String error;
      private String message;
      private LocalDateTime timestamp;
      private Map<String, Object> details;
      
      public ErrorResponse(String error, String message) {
          this.error = error;
          this.message = message;
          this.timestamp = LocalDateTime.now();
      }
      
      public ErrorResponse(String error, String message, Map<String, Object> details) {
          this.error = error;
          this.message = message;
          this.timestamp = LocalDateTime.now();
          this.details = details;
      }
      
      // Getters and Setters
      public String getError() { return error; }
      public void setError(String error) { this.error = error; }
      
      public String getMessage() { return message; }
      public void setMessage(String message) { this.message = message; }
      
      public LocalDateTime getTimestamp() { return timestamp; }
      public void setTimestamp(LocalDateTime timestamp) { this.timestamp = timestamp; }
      
      public Map<String, Object> getDetails() { return details; }
      public void setDetails(Map<String, Object> details) { this.details = details; }
  }