java.lang.Object
com.azure.core.management.exception.ManagementError
com.azure.resourcemanager.compute.models.ApiError

public final class ApiError extends com.azure.core.management.exception.ManagementError
An error response from the Compute service.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ApiError class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the innererror property: The Api inner error.
    void
    Validates the instance.

    Methods inherited from class com.azure.core.management.exception.ManagementError

    getAdditionalInfo, getCode, getDetails, getMessage, getTarget, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ApiError

      public ApiError()
      Creates an instance of ApiError class.
  • Method Details

    • getInnererror

      public InnerError getInnererror()
      Get the innererror property: The Api inner error.
      Returns:
      the innererror value.
    • validate

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