CredentialUnavailableException Class
- 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
- com.
- com.
- com.
- com.
- java.
- java.
- java.
public class CredentialUnavailableException
extends ClientAuthenticationException
The exception thrown when a TokenCredential did not attempt to authenticate and retrieve AccessToken, as its prerequisite information or state was not available.
Constructor Summary
Constructor | Description |
---|---|
CredentialUnavailableException(String message) |
Initializes a new instance of the CredentialUnavailableException class. |
CredentialUnavailableException(String message, Throwable cause) |
Initializes a new instance of the CredentialUnavailableException class. |
Methods inherited from HttpResponseException
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
addSuppressed
fillInStackTrace
getCause
getLocalizedMessage
getMessage
getStackTrace
getSuppressed
initCause
printStackTrace
printStackTrace
printStackTrace
setStackTrace
toString
Constructor Details
CredentialUnavailableException
public CredentialUnavailableException(String message)
Initializes a new instance of the CredentialUnavailableException class.
Parameters:
message
- The exception message.
CredentialUnavailableException
public CredentialUnavailableException(String message, Throwable cause)
Initializes a new instance of the CredentialUnavailableException class.
Parameters:
message
- The exception message.
cause
- The Throwable which caused the creation of this exception.