Class ResourceNotFoundException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ResourceNotFoundException
    extends HttpResponseException
    An error response, typically triggered by a 412 response (for update) or 404 (for get/post)
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ResourceNotFoundException

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

        public ResourceNotFoundException​(java.lang.String message,
                                         HttpResponse response,
                                         java.lang.Object value)
        Initializes a new instance of the ResourceNotFoundException 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
      • ResourceNotFoundException

        public ResourceNotFoundException​(java.lang.String message,
                                         HttpResponse response,
                                         java.lang.Throwable cause)
        Initializes a new instance of the ResourceNotFoundException 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 ResourceNotFoundException