Package com.contentstack.sdk
Class Error
java.lang.Object
com.contentstack.sdk.Error
If there is something wrong with the API request, Contentstack returns an error.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns error codeReturns error details in StringReturns error in string format.
-
Constructor Details
-
Error
public Error() -
Error
-
-
Method Details
-
getErrorMessage
Returns error in string format.- Returns:
- String error message
Example :
String errorString = error.getErrorMessage();
-
getErrorCode
public int getErrorCode()Returns error code- Returns:
- int value.
Example :
int errorCode = error.getErrorCode();
-
getErrorDetail
Returns error details in String- Returns:
- String
Example :
String error = error.getErrorDetail();
-