Coverage Summary for Class: ErrorResponse (com.github.malyshevhen.domain.dto)

Class Class, % Method, % Line, %
ErrorResponse 100% (1/1) 100% (2/2) 100% (2/2)


 package com.github.malyshevhen.domain.dto;
 
 /**
  * Represents an error response containing a message and a timestamp.
  * 
  * @author Evhen Malysh
  */
 public record ErrorResponse(String message, long timestamp) {
 
     /**
      * Constructs an ErrorResponse object with the given message and automatically
      * sets the timestamp.
      *
      * @param message the error message
      */
     public ErrorResponse(String message) {
         this(message, System.currentTimeMillis());
     }
 }