Class InvalidArgumentError

    • Constructor Detail

      • InvalidArgumentError

        public InvalidArgumentError()
        Constructs a new InvalidArgumentError.
      • InvalidArgumentError

        public InvalidArgumentError​(String message,
                                    String parameter,
                                    List<ValidationError> validationErrors)
        Constructs a new InvalidArgumentError.
        Parameters:
        message - the message for the invalid argument error
        parameter - the name of the parameter associated with the invalid argument error
        validationErrors - the validation errors associated with the invalid argument
    • Method Detail

      • getParameter

        public String getParameter()
        Returns the name of the parameter associated with the invalid argument error.
        Returns:
        the name of the parameter associated with the invalid argument error
      • getValidationErrors

        public List<ValidationError> getValidationErrors()
        Returns the optional validation errors associated with the invalid argument error.
        Returns:
        the optional validation errors associated with the invalid argument error