public class AllFailConstraint extends BaseConstraint
Constructor and Description |
---|
AllFailConstraint() |
Modifier and Type | Method and Description |
---|---|
void |
check(Put p)
Check a
Put to ensure it is valid for the table. |
public void check(Put p) throws ConstraintException
Constraint
Put
to ensure it is valid for the table. If the Put
is valid, then just return from the method. Otherwise, throw an
Exception
specifying what happened. This Exception
is
propagated back to the client so you can see what caused the Put
to
fail.p
- Put
to checkConstraintException
- when the
Put
does not match the
constraint.