ResourceNotFoundException 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. ResourceNotFoundException
- com.
- com.
- com.
- java.
- java.
- java.
public class ResourceNotFoundException
extends HttpResponseException
The ResourceNotFoundException
represents an exception thrown when an HTTP request attempts to access a resource that does not exist.
This exception is typically thrown when the service responds with a status code of 4XX, typically 404 Not Found.
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 |
---|---|
ResourceNotFoundException(String message, HttpResponse response) |
Initializes a new instance of the Resource |
ResourceNotFoundException(String message, HttpResponse response, Object value) |
Initializes a new instance of the Resource |
ResourceNotFoundException(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
ResourceNotFoundException
public ResourceNotFoundException(String message, HttpResponse response)
Initializes a new instance of the ResourceNotFoundException class.
Parameters:
ResourceNotFoundException
public ResourceNotFoundException(String message, HttpResponse response, Object value)
Initializes a new instance of the ResourceNotFoundException class.
Parameters:
ResourceNotFoundException
public ResourceNotFoundException(String message, HttpResponse response, Throwable cause)
Initializes a new instance of the ResourceNotFoundException class.
Parameters:
Applies to
Azure SDK for Java