public class QueryResultException extends DataException
Exception thrown when a query result cannot be converted to the expected type.
| Modifier | Constructor and Description |
|---|---|
|
QueryResultException()
Default constructor.
|
protected |
QueryResultException(java.lang.String message,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static QueryResultException |
withCause(java.lang.RuntimeException cause)
Return a new exception with the specified root cause.
|
static QueryResultException |
withMessage(java.lang.String message)
Return a new exception with the specified message text.
|
getSafeMessage, safe, setSafeMessagegetCause, getMessage, setCause, setMessage, toStringprotected QueryResultException(java.lang.String message,
java.lang.Throwable cause)
public QueryResultException()
Default constructor.
public static QueryResultException withCause(java.lang.RuntimeException cause)
Return a new exception with the specified root cause.
cause - (nullable) Root cause.public static QueryResultException withMessage(java.lang.String message)
Return a new exception with the specified message text.
message - (nullable) Message text.