Class ManagementError

java.lang.Object
com.azure.core.management.exception.ManagementError

public class ManagementError extends Object
An instance of this class provides additional information about an http error response.
  • Constructor Details

    • ManagementError

      public ManagementError()
      Constructs a new ManagementError object.
    • ManagementError

      public ManagementError(String code, String message)
      Constructs a new ManagementError object.
      Parameters:
      code - the error code.
      message - the error message.
  • Method Details

    • getCode

      public String getCode()
      Returns:
      the error code parsed from the body of the http error response.
    • getMessage

      public String getMessage()
      Returns:
      the error message.
    • getTarget

      public String getTarget()
      Returns:
      the target of the error.
    • getDetails

      public List<? extends ManagementError> getDetails()
      Returns:
      the details for the error.
    • getAdditionalInfo

      public List<AdditionalInfo> getAdditionalInfo()
      Returns:
      the additional info for the error.
    • toString

      public String toString()
      Overrides:
      toString in class Object