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
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 |
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 |
constraint
protected CheckConstraint constraint
- Database constraint
value
protected java.lang.Object value
- Value that forces the constraint
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.Stringconstraint
- 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.Stringconstraint
- CheckConstraintvalue
- Object
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