| Package | Description |
|---|---|
| ai.grakn.exception |
Grakn exception definitions.
|
| Modifier and Type | Method and Description |
|---|---|
static GraknServerException |
GraknServerException.authenticationFailure()
Thrown when an incorrect query is used with a REST endpoint
|
static GraknServerException |
GraknServerException.contentTypeQueryMismatch(String contentType,
Query query)
Thrown when there is a mismatch between the content type in the request and the query to be executed
|
static GraknServerException |
GraknServerException.couldNotDelete(String keyspace)
Thrown when engine cannot delete a keyspace as expected
|
static GraknServerException |
GraknServerException.internalError(String errorMessage)
Thrown when an internal server error occurs.
|
static GraknServerException |
GraknServerException.invalidQuery(String queryType)
Thrown when an incorrect query is used with a REST endpoint
|
static GraknServerException |
GraknServerException.invalidQueryExplaination(String query)
Thrown when asked to explain a non-match query
|
static GraknServerException |
GraknServerException.invalidTask(String className)
Thrown when attempting to create an invalid task
|
static GraknServerException |
GraknServerException.requestMissingBody()
Thrown when a request is missing the body
|
static GraknServerException |
GraknServerException.requestMissingBodyParameters(String parameter)
Thrown when a request is missing mandatory parameters in the body
|
static GraknServerException |
GraknServerException.requestMissingParameters(String parameter)
Thrown when a request is missing mandatory parameters
|
static GraknServerException |
GraknServerException.serverException(int status,
Exception e)
Thrown when the Grakn server has an internal exception.
|
static GraknServerException |
GraknServerException.unsupportedContentType(String contentType)
Thrown the content type specified in a request is invalid
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.