Class QueryForbiddenOperatorException

All Implemented Interfaces:
Serializable

public class QueryForbiddenOperatorException extends QueryFieldValidationException
Indicates that a query uses an operator that is not allowed for a specific field path.
See Also:
  • Constructor Details

    • QueryForbiddenOperatorException

      public QueryForbiddenOperatorException(String message, String fieldPath, cz.jirutka.rsql.parser.ast.ComparisonOperator operator, Set<cz.jirutka.rsql.parser.ast.ComparisonOperator> allowedOperators)
      Creates a new forbidden operator exception.
      Parameters:
      message - validation error details
      fieldPath - query field path associated with the failure
      operator - operator used in the query
      allowedOperators - operators allowed for the field
    • QueryForbiddenOperatorException

      public QueryForbiddenOperatorException(String message, String fieldPath, cz.jirutka.rsql.parser.ast.ComparisonOperator operator, Set<cz.jirutka.rsql.parser.ast.ComparisonOperator> allowedOperators, Throwable cause)
      Creates a new forbidden operator exception with an underlying cause.
      Parameters:
      message - validation error details
      fieldPath - query field path associated with the failure
      operator - operator used in the query
      allowedOperators - operators allowed for the field
      cause - root cause of the validation failure