com.ibm.dse.tools.workbench.base
Class RpCheckConstraintException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.dse.tools.workbench.base.WorkbenchException
                    |
                    +--com.ibm.dse.tools.workbench.base.RepositoryException
                          |
                          +--com.ibm.dse.tools.workbench.base.RpCheckConstraintException

public class RpCheckConstraintException
extends RepositoryException

The class RpCheckConstraintException is thrown by the Workbench when trying to set a value against a database constraint

See Also:
Serialized Form

Field Summary
protected  CheckConstraint constraint
          Database constraint
protected  java.lang.Object value
          Value that forces the constraint
 
Constructor Summary
RpCheckConstraintException(java.lang.String message, CheckConstraint constraint)
          Constructs a RpCheckConstraintException with a specified detail message and the violated constraint
RpCheckConstraintException(java.lang.String message, CheckConstraint constraint, java.lang.Object value)
          Constructs a RpCheckConstraintException with a specified detail message, the violated constraint and the value
 
Method Summary
 CheckConstraint getConstraint()
          Gets the violated database constraint
 java.lang.Object getValue()
          Gets the value
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

constraint

protected CheckConstraint constraint
Database constraint

value

protected java.lang.Object value
Value that forces the constraint
Constructor Detail

RpCheckConstraintException

public RpCheckConstraintException(java.lang.String message,
                                  CheckConstraint constraint)
Constructs a RpCheckConstraintException with a specified detail message and the violated constraint
Parameters:
message - java.lang.String
constraint - CheckConstraint

RpCheckConstraintException

public RpCheckConstraintException(java.lang.String message,
                                  CheckConstraint constraint,
                                  java.lang.Object value)
Constructs a RpCheckConstraintException with a specified detail message, the violated constraint and the value
Parameters:
message - java.lang.String
constraint - CheckConstraint
value - Object
Method Detail

getConstraint

public CheckConstraint getConstraint()
Gets the violated database constraint
Returns:
com.ibm.dse.tools.workbench.base.CheckConstraint

getValue

public java.lang.Object getValue()
Gets the value
Returns:
java.lang.Object