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.ManagementExceptionException thrown for an invalid response with custom error information.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThrowableconvertToManagementException(Throwable exception)Tries to convert the exception to an AggregatedManagementException.StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
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:
toStringin classcom.azure.core.management.exception.ManagementException
-
-