### YamlMime:JavaType uid: "com.azure.core.exception.ClientAuthenticationException" fullName: "com.azure.core.exception.ClientAuthenticationException" name: "ClientAuthenticationException" nameWithType: "ClientAuthenticationException" summary: "The `ClientAuthenticationException` represents an exception thrown when client authentication fails with a status code of 4XX, typically 401 unauthorized." inheritances: - "" - "" - "" - "" - "" - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "wait" - "wait" - "wait" - classRef: "java.lang.Throwable" methodsRef: - "addSuppressed" - "fillInStackTrace" - "getCause" - "getLocalizedMessage" - "getMessage" - "getStackTrace" - "getSuppressed" - "initCause" - "printStackTrace" - "printStackTrace" - "printStackTrace" - "setStackTrace" - "toString" syntax: "public class **ClientAuthenticationException**
extends " constructors: - uid: "com.azure.core.exception.ClientAuthenticationException.ClientAuthenticationException(java.lang.String,com.azure.core.http.HttpResponse)" fullName: "com.azure.core.exception.ClientAuthenticationException.ClientAuthenticationException(String message, HttpResponse response)" name: "ClientAuthenticationException(String message, HttpResponse response)" nameWithType: "ClientAuthenticationException.ClientAuthenticationException(String message, HttpResponse response)" summary: "Initializes a new instance of the class." parameters: - description: "The exception message or the response content if a message is not available." name: "message" type: "String" - description: "The HTTP response with the authorization failure." name: "response" type: "" syntax: "public ClientAuthenticationException(String message, HttpResponse response)" desc: "Initializes a new instance of the class." - uid: "com.azure.core.exception.ClientAuthenticationException.ClientAuthenticationException(java.lang.String,com.azure.core.http.HttpResponse,java.lang.Object)" fullName: "com.azure.core.exception.ClientAuthenticationException.ClientAuthenticationException(String message, HttpResponse response, Object value)" name: "ClientAuthenticationException(String message, HttpResponse response, Object value)" nameWithType: "ClientAuthenticationException.ClientAuthenticationException(String message, HttpResponse response, Object value)" summary: "Initializes a new instance of the class." parameters: - description: "The exception message or the response content if a message is not available." name: "message" type: "String" - description: "The HTTP response with the authorization failure." name: "response" type: "" - description: "The deserialized HTTP response value." name: "value" type: "Object" syntax: "public ClientAuthenticationException(String message, HttpResponse response, Object value)" desc: "Initializes a new instance of the class." - uid: "com.azure.core.exception.ClientAuthenticationException.ClientAuthenticationException(java.lang.String,com.azure.core.http.HttpResponse,java.lang.Throwable)" fullName: "com.azure.core.exception.ClientAuthenticationException.ClientAuthenticationException(String message, HttpResponse response, Throwable cause)" name: "ClientAuthenticationException(String message, HttpResponse response, Throwable cause)" nameWithType: "ClientAuthenticationException.ClientAuthenticationException(String message, HttpResponse response, Throwable cause)" summary: "Initializes a new instance of the class." parameters: - description: "The exception message or the response content if a message is not available." name: "message" type: "String" - description: "The HTTP response with the authorization failure." name: "response" type: "" - description: "The which caused the creation of this exception." name: "cause" type: "Throwable" syntax: "public ClientAuthenticationException(String message, HttpResponse response, Throwable cause)" desc: "Initializes a new instance of the class." type: "class" desc: "The `ClientAuthenticationException` represents an exception thrown when client authentication fails with a status code of 4XX, typically 401 unauthorized.\n\nThis exception is thrown in the following scenarios:\n\n * 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.\n * The request contains the HTTP Authorization header, but authorization has been refused for the credentials contained in the request header." metadata: {} package: "com.azure.core.exception" artifact: com.azure:azure-core:1.52.0