Class PreconditionRequiredException

  • All Implemented Interfaces:
    Serializable, Response

    public class PreconditionRequiredException
    extends ResourceException
    An exception that is thrown to indicate that a resource requires a version, but no version was supplied in the request. Equivalent to draft-nottingham-http-new-status-03 HTTP status: 428 Precondition Required.
    See Also:
    Serialized Form
    • Constructor Detail

      • PreconditionRequiredException

        public PreconditionRequiredException()
        Constructs a new exception with null as its detail message.
      • PreconditionRequiredException

        public PreconditionRequiredException​(String message)
        Constructs a new exception with the specified detail message.
        Parameters:
        message - The detail message.
      • PreconditionRequiredException

        public PreconditionRequiredException​(String message,
                                             Throwable cause)
        Constructs a new exception with the specified detail message and cause.
        Parameters:
        message - The detail message.
        cause - The exception which caused this exception to be thrown.
      • PreconditionRequiredException

        public PreconditionRequiredException​(Throwable cause)
        Constructs a new exception with the specified cause.
        Parameters:
        cause - The exception which caused this exception to be thrown.