Class QueryValidationException

All Implemented Interfaces:
Serializable

public class QueryValidationException extends QueryException
Exception thrown when an API consumer provides an invalid RSQL query, sorting request, or filter parameters.

This exception indicates that the request itself is malformed or violates configured validation rules (e.g., filtering on a non-filterable field, using a disallowed operator, or providing invalid RSQL syntax).

This exception is intended to be caught and returned as a 4xx client error to the consumer.

See Also:
  • Constructor Details

    • QueryValidationException

      public QueryValidationException(String message)
      Constructs a new query validation exception with the specified detail message.
      Parameters:
      message - the detail message explaining the reason for the validation failure
    • QueryValidationException

      public QueryValidationException(String message, Throwable cause)
      Constructs a new query validation exception with the specified detail message and cause.
      Parameters:
      message - the detail message explaining the reason for the validation failure
      cause - the underlying cause of the validation failure (e.g., RSQLParserException)