Package com.fauna.response
Class QueryFailure
- java.lang.Object
-
- com.fauna.response.QueryResponse
-
- com.fauna.response.QueryFailure
-
public final class QueryFailure extends QueryResponse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fauna.response.QueryResponse
QueryResponse.Builder<T>
-
-
Constructor Summary
Constructors Constructor Description QueryFailure(int httpStatus, QueryResponse.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.Optional<T>
getAbort(java.lang.Class<T> clazz)
java.util.Optional<ConstraintFailure[]>
getConstraintFailures()
java.lang.String
getErrorCode()
java.lang.String
getFullMessage()
java.lang.String
getMessage()
int
getStatusCode()
-
Methods inherited from class com.fauna.response.QueryResponse
builder, getLastSeenTxn, getQueryTags, getSchemaVersion, getStats, getSummary, parseResponse
-
-
-
-
Constructor Detail
-
QueryFailure
public QueryFailure(int httpStatus, QueryResponse.Builder builder)
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
-
getErrorCode
public java.lang.String getErrorCode()
-
getMessage
public java.lang.String getMessage()
-
getAbort
public <T> java.util.Optional<T> getAbort(java.lang.Class<T> clazz)
-
getFullMessage
public java.lang.String getFullMessage()
-
getConstraintFailures
public java.util.Optional<ConstraintFailure[]> getConstraintFailures()
-
-