package by.bsuir.mpp.computershop.controller.exception.dto;

public class ErrorResponse {
    private String message;

    public ErrorResponse(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}

@@ -54,16 +54,44 @@
 n.dto;%0A%0A
+import java.sql.Timestamp;%0A%0A
 public c
@@ -111,16 +111,17 @@
 ponse %7B%0A
+%0A
     priv
@@ -141,16 +141,94 @@
 ssage;%0A%0A
+    private Timestamp timestamp = new Timestamp(System.currentTimeMillis());%0A%0A
     publ
@@ -402,32 +402,32 @@
 ring message) %7B%0A
-
         this.mes
@@ -447,11 +447,82 @@
 e;%0A    %7D
+%0A%0A    public Timestamp getTimestamp() %7B%0A        return timestamp;%0A    %7D
 %0A%7D%0A

Add timestamp to ErrorResponse