Class NotFoundException

  • All Implemented Interfaces:
    Serializable

    public class NotFoundException
    extends CanonException
    An Exception which may be thrown by Canon implementing methods to indicate that the request is understood but the caller lacks the necessary entitlements to perform that action.
    Author:
    Bruce Skingle
    See Also:
    Serialized Form
    • Constructor Detail

      • NotFoundException

        public NotFoundException()
        Default constructor. HTTP status 404 is implied.
      • NotFoundException

        public NotFoundException​(String message)
        Constructor with message.
        Parameters:
        message - A message describing the detail of the fault.
      • NotFoundException

        public NotFoundException​(String message,
                                 Throwable cause)
        Constructor with message and cause.
        Parameters:
        message - A message describing the detail of the fault.
        cause - The underlying cause of the fault.
      • NotFoundException

        public NotFoundException​(Throwable cause)
        Constructor with cause.
        Parameters:
        cause - The underlying cause of the fault.
      • NotFoundException

        public NotFoundException​(String message,
                                 Throwable cause,
                                 boolean enableSuppression,
                                 boolean writableStackTrace)
        Constructor with message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
        Parameters:
        message - A message describing the detail of the fault.
        cause - The underlying cause of the fault.
        enableSuppression - whether or not suppression is enabled or disabled
        writableStackTrace - whether or not the stack trace should be writable
      • NotFoundException

        public NotFoundException​(org.apache.http.client.methods.CloseableHttpResponse response)
        Constructor with HTTP response. The body of the response is saved and can be retrieved with @see getResponseBody
        Parameters:
        response - An HTTP response which is saved as the cause of the exception.