Class QueryForbiddenOperatorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
in.co.akshitbansal.springwebquery.exception.QueryException
in.co.akshitbansal.springwebquery.exception.QueryValidationException
in.co.akshitbansal.springwebquery.exception.QueryFieldValidationException
in.co.akshitbansal.springwebquery.exception.QueryForbiddenOperatorException
- All Implemented Interfaces:
Serializable
Indicates that a query uses an operator that is not allowed for a specific field path.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueryForbiddenOperatorException(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.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. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 detailsfieldPath- query field path associated with the failureoperator- operator used in the queryallowedOperators- 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 detailsfieldPath- query field path associated with the failureoperator- operator used in the queryallowedOperators- operators allowed for the fieldcause- root cause of the validation failure
-