Class InvalidFieldException

    • Constructor Detail

      • InvalidFieldException

        public InvalidFieldException​(String field,
                                     String reason)
        Creates a new invalid field exception about a given field.
        Parameters:
        field - field name
        reason - reason the field is invalid
      • InvalidFieldException

        public InvalidFieldException​(String field,
                                     Throwable cause)
        Creates a new invalid field exception about a given field.
        Parameters:
        field - field name
        cause - throwable that occurred while trying to validate field
    • Method Detail

      • field

        public String field()
        Returns the field name.
        Returns:
        field name
      • reason

        public String reason()
        Returns the reason the field failed to validate.
        Returns:
        reason