public class GraknBackendException extends GraknException
Backend Grakn Exception
Failures which occur server side are wrapped in this exception. This can include but is not limited to: - Kafka timeouts - Cassandra Timeouts - Malformed Requests
| Modifier | Constructor and Description |
|---|---|
protected |
GraknBackendException(String error) |
protected |
GraknBackendException(String error,
Exception e) |
| Modifier and Type | Method and Description |
|---|---|
static GraknBackendException |
engineUnavailable(String host,
int port,
IOException e)
Thrown when the task client cannot reach engine
|
static GraknBackendException |
stateStorage()
Thrown when the task state storage cannot be accessed.
|
static GraknBackendException |
stateStorage(Exception error)
Thrown when the task state storage cannot be accessed.
|
static GraknBackendException |
stateStorageMissingId(TaskId id)
Thrown when a task id is missing from the task state storage
|
static GraknBackendException |
stateStorageTaskRetrievalFailure(Exception e)
Thrown when a task id is missing from the task state storage
|
static GraknBackendException |
unknown(Exception e)
Thrown when the persistence layer throws an unexpected exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected GraknBackendException(String error)
public static GraknBackendException unknown(Exception e)
public static GraknBackendException stateStorage(Exception error)
public static GraknBackendException stateStorage()
public static GraknBackendException stateStorageMissingId(TaskId id)
public static GraknBackendException stateStorageTaskRetrievalFailure(Exception e)
public static GraknBackendException engineUnavailable(String host, int port, IOException e)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.