Class ErrorResponse

java.lang.Object
com.lpvs.exception.ErrorResponse

public class ErrorResponse extends Object
Represents an error response containing details about an encountered exception. Instances of this class are typically returned as part of the application's error handling mechanism.

The error response includes a timestamp, error message, error code, and HTTP status code.

  • Constructor Details

    • ErrorResponse

      public ErrorResponse(String message, String code, int status)
      Constructs a new ErrorResponse with the specified message, code, and status.
      Parameters:
      message - The descriptive message providing information about the encountered error.
      code - A specific code associated with the error, aiding in identifying and categorizing the error type.
      status - The HTTP status code indicating the response status related to the error.