Package com.contentstack.sdk
Class Error
- java.lang.Object
-
- com.contentstack.sdk.Error
-
public class Error extends Object
If there is something wrong with the API request, Contentstack returns an error.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
Returns error codeString
getErrorDetail()
Returns error details in StringString
getErrorMessage()
Returns error in string format.
-
-
-
Method Detail
-
getErrorMessage
public String 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();
-
-