Class Response

    • Constructor Detail

      • Response

        public Response()
        Constructs the response.
      • Response

        public Response​(Status status)
        Constructs the response.
        Parameters:
        status - the status of the request execution.
      • Response

        public Response​(Throwable throwable,
                        ErrorCode defaultMetaDataError,
                        ErrorCode defaultError,
                        String location)
        Constructs an error response object with the data from an exception.
        Parameters:
        throwable - the exception that occurred.
        defaultMetaDataError - the default error code for XDSMetaDataException.
        defaultError - the default error code for any other exception.
        location - error location.
    • Method Detail

      • getStatus

        public Status getStatus()
        Returns:
        the status of the request execution.
      • setStatus

        public void setStatus​(Status status)
        Parameters:
        status - the status of the request execution.
      • getErrors

        public List<ErrorInfo> getErrors()
        Returns:
        the list of errors that occurred.
      • setErrors

        public void setErrors​(List<ErrorInfo> errors)
        Parameters:
        errors - the list of errors that occurred.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object