AzureException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
azure. core. exception. AzureException
- com.
- java.
- java.
- java.
public class AzureException extends RuntimeException
The AzureException
class is the base class for all exceptions thrown by Azure SDKs. This class extends the RuntimeException
class, which means that it is an unchecked exception.
Instances of this class or its subclasses are typically thrown in response to errors that occur when interacting with Azure services. For example, if a network request to an Azure service fails, an AzureException
might be thrown. The specific subclass of AzureException
that is thrown depends on the nature of the error.
Constructor Summary
Constructor | Description |
---|---|
AzureException() |
Initializes a new instance of the Azure |
AzureException(String message) |
Initializes a new instance of the Azure |
AzureException(String message, Throwable cause) |
Initializes a new instance of the Azure |
AzureException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) |
Initializes a new instance of the Azure |
AzureException(Throwable cause) |
Initializes a new instance of the Azure |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
AzureException
public AzureException()
Initializes a new instance of the AzureException class.
AzureException
public AzureException(String message)
Initializes a new instance of the AzureException class.
Parameters:
AzureException
public AzureException(String message, Throwable cause)
Initializes a new instance of the AzureException class.
Parameters:
AzureException
public AzureException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Initializes a new instance of the AzureException class.
Parameters:
AzureException
public AzureException(Throwable cause)
Initializes a new instance of the AzureException class.
Parameters:
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應