public class DataQueryException extends DataException
Exception thrown when a query cannot be parsed or evaluated.
Modifier | Constructor and Description |
---|---|
|
DataQueryException()
Default constructor.
|
protected |
DataQueryException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static DataQueryException |
cannotParse(java.lang.String value,
java.lang.String type)
Return a new exception to be thrown when a value cannot be parsed from a query URL.
|
static DataQueryException |
withCause(java.lang.RuntimeException cause)
Return a new exception with the specified root cause.
|
static DataQueryException |
withMessage(java.lang.String message)
Return a new exception with the specified message text.
|
getSafeMessage, safe, setSafeMessage
getCause, getMessage, setCause, setMessage, toString
protected DataQueryException(java.lang.String message, java.lang.Throwable cause)
public DataQueryException()
Default constructor.
public static DataQueryException cannotParse(java.lang.String value, java.lang.String type)
Return a new exception to be thrown when a value cannot be parsed from a query URL.
value
- Text of value that could not be parsed.type
- Name of expected data type.public static DataQueryException withCause(java.lang.RuntimeException cause)
Return a new exception with the specified root cause.
cause
- (nullable) Root cause.public static DataQueryException withMessage(java.lang.String message)
Return a new exception with the specified message text.
message
- (nullable) Message text.