public class QueryInterruptedException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
static String |
QUERY_CANCELLED |
static String |
QUERY_INTERRUPTED |
static String |
QUERY_TIMEOUT |
static String |
RESOURCE_LIMIT_EXCEEDED |
static String |
UNKNOWN_EXCEPTION |
| Constructor and Description |
|---|
QueryInterruptedException(String errorCode,
String errorMessage,
String errorClass,
String host) |
QueryInterruptedException(Throwable cause)
Creates a new QueryInterruptedException wrapping an underlying exception.
|
QueryInterruptedException(Throwable cause,
String host) |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorClass() |
String |
getErrorCode() |
String |
getHost() |
String |
getMessage() |
static QueryInterruptedException |
wrapIfNeeded(Throwable e) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final String QUERY_INTERRUPTED
public static final String QUERY_TIMEOUT
public static final String QUERY_CANCELLED
public static final String RESOURCE_LIMIT_EXCEEDED
public static final String UNKNOWN_EXCEPTION
public QueryInterruptedException(String errorCode, String errorMessage, String errorClass, String host)
public QueryInterruptedException(Throwable cause)
cause - wrapped exceptionpublic String getErrorCode()
public String getMessage()
getMessage in class Throwablepublic String getErrorClass()
public String getHost()
public static QueryInterruptedException wrapIfNeeded(Throwable e)
Copyright © 2011–2017. All rights reserved.