Package com.orchestranetworks.schema
Class ConstraintViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
com.orchestranetworks.schema.ConstraintViolationException
- All Implemented Interfaces:
Serializable
Thrown to indicate that an insert, an update or a delete is not valid
with respect to a blocking constraint.
-
Constructor Summary
ConstructorDescriptionConstraintViolationException
(UserMessage aMessage) ConstraintViolationException
(UserMessage aMessage, SchemaFacet aFacet) ConstraintViolationException
(UserMessage aMessage, SchemaNode aNode, SchemaFacet aFacet) ConstraintViolationException
(String XPathExpression, UserMessage message, SchemaNode node, SchemaFacet facet) ConstraintViolationException
(String aMessage, SchemaNode aNode, SchemaFacet aFacet) -
Method Summary
Modifier and TypeMethodDescriptiongetFacet()
Returns the facet associated with the constraint violated.getNode()
Returns the node associated with the constraint violated.Returns the user message associated with this exception.Returns an XPath expression specifying the entity with which this exception is associated.toString()
Returns a string representation of the localized message defined by this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ConstraintViolationException
public ConstraintViolationException(String XPathExpression, UserMessage message, SchemaNode node, SchemaFacet facet) -
ConstraintViolationException
-
ConstraintViolationException
-
ConstraintViolationException
-
ConstraintViolationException
-
-
Method Details
-
getUserMessage
Returns the user message associated with this exception. -
getNode
Returns the node associated with the constraint violated. The node can benull
if this exception is raised during the following actions:- Attempt to delete a record referenced by a foreign key constraint,
- Attempt to delete a dataset referenced by a foreign key constraint,
- Attempt to close a dataspace or snapshot referenced by a foreign key constraint.
-
getFacet
Returns the facet associated with the constraint violated. Returnsnull
if this exception is raised:- during the attempt to close a dataspace or snapshot referenced by a foreign key constraint.
- during the attempt to create a record in the target table of an association that does not comply with the filter defined by the association.
-
getXPathExpression
Returns an XPath expression specifying the entity with which this exception is associated. The XPath expression can benull
if this exception is raised while attempting to close a dataspace or snapshot referenced by a foreign key constraint. -
toString
Returns a string representation of the localized message defined by this exception.
-