| Package | Description |
|---|---|
| ai.grakn.engine.tasks | |
| ai.grakn.exception |
Grakn exception definitions.
|
| Modifier and Type | Method and Description |
|---|---|
TaskState |
TaskStateStorage.getState(TaskId id)
This is a copy of the internal TaskState object.
|
TaskId |
TaskStateStorage.newState(TaskState state)
Create a new task state and store it, returning an ID to later access this task state.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GraknServerException
Grakn Server Exception
|
class |
TemporaryWriteException
Graph Mutation Exception
|
| Modifier and Type | Method and Description |
|---|---|
static GraknBackendException |
GraknBackendException.engineUnavailable(String host,
int port,
IOException e)
Thrown when the task client cannot reach engine
|
static GraknBackendException |
GraknBackendException.stateStorage()
Thrown when the task state storage cannot be accessed.
|
static GraknBackendException |
GraknBackendException.stateStorage(Exception error)
Thrown when the task state storage cannot be accessed.
|
static GraknBackendException |
GraknBackendException.stateStorageMissingId(TaskId id)
Thrown when a task id is missing from the task state storage
|
static GraknBackendException |
GraknBackendException.stateStorageTaskRetrievalFailure(Exception e)
Thrown when a task id is missing from the task state storage
|
static GraknBackendException |
GraknBackendException.unknown(Exception e)
Thrown when the persistence layer throws an unexpected exception.
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.