Class ErrorResponse

    • Constructor Detail

      • ErrorResponse

        public ErrorResponse()
    • Method Detail

      • getErrors

        public List<String> getErrors()
        The errors from the response
        Returns:
        The errors from the response
      • getError

        public String getError()
        The error from the response
        Returns:
        The error from the response
      • getOk

        public Boolean getOk()
        Whether the request is ok
        Returns:
        The status
      • getMessage

        public String getMessage()
        The error message
        Returns:
        the message
      • setErrors

        public ErrorResponse setErrors​(List<String> errors)
        The errors from the response
        Parameters:
        errors - The errors from the response
        Returns:
        this.
      • setError

        public ErrorResponse setError​(String error)
        The error from the response
        Parameters:
        error - The error with the response
        Returns:
        this.
      • setOk

        public ErrorResponse setOk​(Boolean ok)
        Whether the request is ok
        Parameters:
        ok - The status of the request
        Returns:
        this.
      • setMessage

        public ErrorResponse setMessage​(String message)
        The error message
        Parameters:
        message - The error message
        Returns:
        this.