ApiFault Class
- java.
lang. Object - com.
microsoft. store. partnercenter. models. ResourceBase - com.
microsoft. store. partnercenter. models. ApiFault
- com.
- com.
public class ApiFault extends ResourceBase
Represents API failures.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | ApiFault() |
Initializes a new instance of the Api |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getErrorCode()
Gets the error code. |
| java.lang.Iterable<java.lang.Object> |
getErrorData()
Gets the additional fault information if present. |
| java.lang.String |
getErrorMessage()
Gets the error message. |
| boolean |
getIsRetryable()
Gets a flag indicating whether or not the fault is retryable. |
| void |
setErrorCode(String value)
Sets the error code. |
| void |
setErrorData(Iterable<Object> value)
Sets the additional fault information. |
| void |
setErrorMessage(String value)
Sets the error message. |
| void |
setIsRetryable(boolean value)
Sets a flag indicating whether or not the fault is retryable. |
| java.lang.String |
toString()
Returns a meaningful summary about the API fault. |
Inherited Members
Constructor Details
ApiFault
protected ApiFault()
Initializes a new instance of the ApiFault class.
Method Details
getErrorCode
public String getErrorCode()
Gets the error code.
Returns:
getErrorData
public Iterable