Class CredentialUnavailableException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    AuthenticationRequiredException

    public class CredentialUnavailableException
    extends com.azure.core.exception.ClientAuthenticationException
    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:
    Serialized Form
    • Constructor Detail

      • 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.