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 Summary
Modifier and TypeMethodDescriptionstatic ThrowableconvertToManagementException(Throwable exception) Tries to convert the exception to an AggregatedManagementException.toString()Methods inherited from class com.azure.core.management.exception.ManagementException
getValueMethods inherited from class com.azure.core.exception.HttpResponseException
getResponseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Method Details
-
convertToManagementException
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
- Overrides:
toStringin classcom.azure.core.management.exception.ManagementException
-