Class 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:
    Serialized Form
    • Method Detail

      • 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