Class ApiFault

java.lang.Object
com.microsoft.store.partnercenter.models.ResourceBase
com.microsoft.store.partnercenter.models.ApiFault

public class ApiFault
extends ResourceBase
Represents API failures.
  • Constructor Details

    • ApiFault

      protected ApiFault()
      Initializes a new instance of the ApiFault class.
  • Method Details

    • getErrorCode

      public String getErrorCode()
      Gets the error code.
      Returns:
      The error code.
    • setErrorCode

      public void setErrorCode​(String value)
      Sets the error code.
      Parameters:
      value - The error code.
    • getErrorMessage

      public String getErrorMessage()
      Gets the error message.
      Returns:
      The error message.
    • setErrorMessage

      public void setErrorMessage​(String value)
      Sets the error message.
      Parameters:
      value - The error message.
    • getErrorData

      public Iterable<Object> getErrorData()
      Gets the additional fault information if present.
      Returns:
      The additional fault information if present.
    • setErrorData

      public void setErrorData​(Iterable<Object> value)
      Sets the additional fault information.
      Parameters:
      value - The additional fault information.
    • getIsRetryable

      public boolean getIsRetryable()
      Gets a flag indicating whether or not the fault is retryable.
      Returns:
      A flag indicating whether or not the fault is retryable.
    • setIsRetryable

      public void setIsRetryable​(boolean value)
      Sets a flag indicating whether or not the fault is retryable.
      Parameters:
      value - A flag indicating whether or not the fault is retryable.
    • toString

      public String toString()
      Returns a meaningful summary about the API fault.
      Overrides:
      toString in class Object
      Returns:
      The API fault summary.