Package io.stargate.sdk.data.exception
Class DataApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.stargate.sdk.data.exception.DataApiException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataApiDocumentAlreadyExistException,DataApiInvalidArgumentException
An error ocured with the JSON API
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataApiException(ApiError error) Error = exception.DataApiException(ApiError error, Throwable cause) Json Api Exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DEFAULT_ERROR_MESSAGE
default error message.- See Also:
-
-
Constructor Details
-
DataApiException
Error = exception.- Parameters:
error- error at api level
-
DataApiException
Json Api Exception.- Parameters:
error- error messagecause- error cause
-
-
Method Details
-
getJsonApiError
Gets errorCode- Returns:
- value of errorCode
-