Class ErrorResponse


  • public final class ErrorResponse
    extends Object
    Error response detailing a problem. The format adheres to RFC 9457.
    • Constructor Detail

      • ErrorResponse

        public ErrorResponse​(String title,
                             String detail,
                             int status,
                             String code,
                             List<ErrorItem> errors)
        Creates a new ErrorResponse instance.
        Parameters:
        title - A short, human-readable summary of the problem.
        detail - A human-readable explanation specific to the occurrence of the problem.
        status - The HTTP status code returned by the server.
        code - A machine-readable code specific to the occurrence of the problem.
        errors - The HTTP status code returned by the server.
      • ErrorResponse

        public ErrorResponse()
    • Method Detail

      • getTitle

        public String getTitle()
        A short, human-readable summary of the problem.
      • getDetail

        public String getDetail()
        A human-readable explanation specific to the occurrence of the problem.
      • getStatus

        public int getStatus()
        The HTTP status code returned by the server.
      • getCode

        public String getCode()
        A machine-readable code specific to the occurrence of the problem.
      • getErrors

        public List<ErrorItem> getErrors()
        The HTTP status code returned by the server.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object