Class AggregatedManagementException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.core.exception.HttpResponseException
com.azure.core.management.exception.ManagementException
com.azure.resourcemanager.resources.fluentcore.exception.AggregatedManagementException
All Implemented Interfaces:
Serializable

public final class AggregatedManagementException extends com.azure.core.management.exception.ManagementException
Exception thrown for an invalid response with custom error information.
See Also:
  • Method Details

    • convertToManagementException

      public static Throwable convertToManagementException(Throwable exception)
      Tries to convert the exception to an AggregatedManagementException.

      Then conversion will happen when the exception suppresses at least one ManagementException.

      Parameters:
      exception - the exception.
      Returns:
      an AggregatedManagementException if the exception can be converted to AggregatedManagementException, the same exception if cannot.
    • toString

      public String toString()
      Overrides:
      toString in class com.azure.core.management.exception.ManagementException