ResourceExistsException 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. ResourceExistsException
- com.
- com.
- com.
- java.
- java.
- java.
public class ResourceExistsException
extends HttpResponseException
The ResourceExistsException
represents an exception thrown when an HTTP request attempts to create a resource that already exists.
This exception is typically thrown when the service responds with a status code of 4XX, typically 412 conflict.
This class also provides methods to get the HttpResponse that was received when the exception occurred and the deserialized HTTP response value.
Constructor Summary
Constructor | Description |
---|---|
ResourceExistsException(String message, HttpResponse response) |
Initializes a new instance of the Resource |
ResourceExistsException(String message, HttpResponse response, Object value) |
Initializes a new instance of the Resource |
ResourceExistsException(String message, HttpResponse response, Throwable cause) |
Initializes a new instance of the Resource |
Methods inherited from HttpResponseException
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
ResourceExistsException
public ResourceExistsException(String message, HttpResponse response)
Initializes a new instance of the ResourceExistsException class.
Parameters:
ResourceExistsException
public ResourceExistsException(String message, HttpResponse response, Object value)
Initializes a new instance of the ResourceExistsException class.
Parameters:
ResourceExistsException
public ResourceExistsException(String message, HttpResponse response, Throwable cause)
Initializes a new instance of the ResourceExistsException class.
Parameters:
Applies to
Azure SDK for Java