Class ResourceExistsException

  • All Implemented Interfaces:
    Serializable

    public class ResourceExistsException
    extends HttpResponseException
    The exception thrown when HTTP request tried to create an already existing resource with status code of 4XX, typically 412 conflict.
    See Also:
    Serialized Form
    • Constructor Detail

      • ResourceExistsException

        public ResourceExistsException​(String message,
                                       HttpResponse response)
        Initializes a new instance of the ResourceExistsException class.
        Parameters:
        message - the exception message or the response content if a message is not available
        response - the HTTP response
      • ResourceExistsException

        public ResourceExistsException​(String message,
                                       HttpResponse response,
                                       Object value)
        Initializes a new instance of the ResourceExistsException class.
        Parameters:
        message - the exception message or the response content if a message is not available
        response - the HTTP response
        value - the deserialized response value
      • ResourceExistsException

        public ResourceExistsException​(String message,
                                       HttpResponse response,
                                       Throwable cause)
        Initializes a new instance of the ResourceExistsException class.
        Parameters:
        message - the exception message or the response content if a message is not available
        response - the HTTP response
        cause - the Throwable which caused the creation of this ResourceExistsException