diff --git a/src/main/java/com/safetypin/authentication/dto/ErrorResponse.java b/src/main/java/com/safetypin/authentication/dto/ErrorResponse.java new file mode 100644 index 0000000000000000000000000000000000000000..e7bb4102d7b8ee0ef4a89fd83cbef9406ccb6922 --- /dev/null +++ b/src/main/java/com/safetypin/authentication/dto/ErrorResponse.java @@ -0,0 +1,25 @@ +package com.safetypin.authentication.dto; + +import lombok.Data; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +import java.time.LocalDateTime; + +@Data +@Getter +@Setter +@NoArgsConstructor +public class ErrorResponse{ + private int status; + private String message; + private LocalDateTime timestamp; + + public ErrorResponse(int status, String message) { + this.status = status; + this.message = message; + this.timestamp = LocalDateTime.now(); + } + +} \ No newline at end of file