Package com.azure.core.exception
Class AzureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.azure.core.exception.AzureException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HttpRequestException,HttpResponseException,ServiceResponseException
public class AzureException extends RuntimeException
The base Azure exception.
-
-
Constructor Summary
Constructors Constructor Description AzureException()Initializes a new instance of the AzureException class.AzureException(String message)Initializes a new instance of the AzureException class.AzureException(String message, Throwable cause)Initializes a new instance of the AzureException class.AzureException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Initializes a new instance of the AzureException class.AzureException(Throwable cause)Initializes a new instance of the AzureException class.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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:
message- The exception message.
-
AzureException
public AzureException(Throwable cause)
Initializes a new instance of the AzureException class.- Parameters:
cause- TheThrowablewhich caused the creation of this AzureException.
-
AzureException
public AzureException(String message, Throwable cause)
Initializes a new instance of the AzureException class.- Parameters:
message- The exception message.cause- TheThrowablewhich caused the creation of this AzureException.
-
AzureException
public AzureException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Initializes a new instance of the AzureException class.- Parameters:
message- The exception message.cause- TheThrowablewhich caused the creation of this AzureException.enableSuppression- Whether suppression is enabled or disabled.writableStackTrace- Whether the exception stack trace will be filled in.
-
-