Class PreconditionFailedException

All Implemented Interfaces:
Serializable, Response

public class PreconditionFailedException extends ResourceException
An exception that is thrown to indicate that a resource's current version does not match the version provided. Equivalent to HTTP status: 412 Precondition Failed.
See Also:
  • Constructor Details

    • PreconditionFailedException

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

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

      public PreconditionFailedException(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.
    • PreconditionFailedException

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