public class QueryValidationException extends ValidationException
Constructor and Description |
---|
QueryValidationException() |
Modifier and Type | Method and Description |
---|---|
static QueryValidationException |
addValidationError(java.lang.String queryId,
java.lang.String validationError,
QueryValidationException validationException)
Helper method than can be used to add error messages to an existing
QueryValidationException . |
static QueryValidationException |
addValidationErrors(java.util.List<java.lang.String> validationErrors,
QueryValidationException validationException)
Helper method than can be used to add error messages to an existing
QueryValidationException . |
addValidationError, addValidationErrors, getMessage, validationErrors
public static QueryValidationException addValidationError(java.lang.String queryId, java.lang.String validationError, QueryValidationException validationException)
QueryValidationException
.
When passing null
as the initial exception, a new exception is created.queryId
- the query that caused the errorvalidationError
- the error message to add to an initial exceptionvalidationException
- an initial exception. Can be null
, in which case a new exception is created.QueryValidationException
with added validation error messagepublic static QueryValidationException addValidationErrors(java.util.List<java.lang.String> validationErrors, QueryValidationException validationException)
QueryValidationException
.
When passing null
as the initial exception, a new exception is created.validationErrors
- the error messages to add to an initial exceptionvalidationException
- an initial exception. Can be null
, in which case a new exception is created.QueryValidationException
with added validation error message