Package com.azure.identity
Class CredentialUnavailableException
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.exception.ClientAuthenticationException
com.azure.identity.CredentialUnavailableException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthenticationRequiredException
The exception thrown when a
TokenCredential
did not attempt to authenticate and retrieve AccessToken
,
as its prerequisite information or state was not available.- See Also:
-
Constructor Summary
ConstructorDescriptionCredentialUnavailableException
(String message) Initializes a new instance of theCredentialUnavailableException
class.CredentialUnavailableException
(String message, Throwable cause) Initializes a new instance of theCredentialUnavailableException
class. -
Method Summary
Methods inherited from class com.azure.core.exception.HttpResponseException
getResponse, getValue
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CredentialUnavailableException
Initializes a new instance of theCredentialUnavailableException
class.- Parameters:
message
- The exception message.
-
CredentialUnavailableException
Initializes a new instance of theCredentialUnavailableException
class.- Parameters:
message
- The exception message.cause
- TheThrowable
which caused the creation of this exception.
-