java.lang.Object
com.azure.resourcemanager.appservice.models.ErrorInfo
Direct Known Subclasses:
AzureResourceErrorInfo

public class ErrorInfo extends Object
The error info.
  • Constructor Details

    • ErrorInfo

      public ErrorInfo()
  • Method Details

    • code

      public String code()
      Get the code property: The error code.
      Returns:
      the code value.
    • withCode

      public ErrorInfo withCode(String code)
      Set the code property: The error code.
      Parameters:
      code - the code value to set.
      Returns:
      the ErrorInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.