public class ConstraintViolationException extends IllegalArgumentException
| Constructor and Description |
|---|
ConstraintViolationException(String aMessage,
SchemaNode aNode,
SchemaFacet aFacet) |
ConstraintViolationException(String XPathExpression,
UserMessage message,
SchemaNode node,
SchemaFacet facet) |
ConstraintViolationException(UserMessage aMessage) |
ConstraintViolationException(UserMessage aMessage,
SchemaFacet aFacet) |
ConstraintViolationException(UserMessage aMessage,
SchemaNode aNode,
SchemaFacet aFacet) |
| Modifier and Type | Method and Description |
|---|---|
SchemaFacet |
getFacet()
Returns the facet associated with the constraint violated.
|
SchemaNode |
getNode()
Returns the node associated with the constraint violated.
|
UserMessage |
getUserMessage()
Returns the user message associated with this exception.
|
String |
getXPathExpression()
Returns an XPath expression specifying the entity with which this
exception is associated.
|
String |
toString()
Returns a string representation of the localized message defined
by this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic ConstraintViolationException(String XPathExpression, UserMessage message, SchemaNode node, SchemaFacet facet)
public ConstraintViolationException(UserMessage aMessage)
public ConstraintViolationException(UserMessage aMessage, SchemaNode aNode, SchemaFacet aFacet)
public ConstraintViolationException(String aMessage, SchemaNode aNode, SchemaFacet aFacet)
public ConstraintViolationException(UserMessage aMessage, SchemaFacet aFacet)
public UserMessage getUserMessage()
public SchemaNode getNode()
null if this exception is raised during the following actions:
public SchemaFacet getFacet()
null if this exception is raised:
public String getXPathExpression()
null if this exception is raised while
attempting to close a dataspace or snapshot referenced by a foreign key constraint.