ClientAuthenticationException 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.
 
- com.
 
- com.
 
- java.
 
- java.
 
- java.
public class ClientAuthenticationException
 extends HttpResponseException
The ClientAuthenticationException represents an exception thrown when client authentication fails with a status code of 4XX, typically 401 unauthorized.
This exception is thrown in the following scenarios:
- The client did not send the required authorization credentials to access the requested resource, i.e., the Authorization HTTP header is missing in the request.
- The request contains the HTTP Authorization header, but authorization has been refused for the credentials contained in the request header.
Constructor Summary
| Constructor | Description | 
|---|---|
| ClientAuthenticationException(String message, HttpResponse response) | Initializes a new instance of the ClientAuthenticationException class. | 
| ClientAuthenticationException(String message, HttpResponse response, Object value) | Initializes a new instance of the ClientAuthenticationException class. | 
| ClientAuthenticationException(String message, HttpResponse response, Throwable cause) | Initializes a new instance of the ClientAuthenticationException class. | 
Methods inherited from HttpResponseException
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
ClientAuthenticationException
public ClientAuthenticationException(String message, HttpResponse response)
Initializes a new instance of the ClientAuthenticationException class.
Parameters:
ClientAuthenticationException
public ClientAuthenticationException(String message, HttpResponse response, Object value)
Initializes a new instance of the ClientAuthenticationException class.
Parameters:
ClientAuthenticationException
public ClientAuthenticationException(String message, HttpResponse response, Throwable cause)
Initializes a new instance of the ClientAuthenticationException class.
Parameters: