com.ibm.xdms.exception.xcap
Class UniquenessFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
com.ibm.xdms.exception.XdmsException
com.ibm.xdms.exception.xcap.XcapException
com.ibm.xdms.exception.xcap.UniquenessFailureException
- All Implemented Interfaces:
- java.io.Serializable
public class UniquenessFailureException
- extends XcapException
Exception which indicates that the requested operation would result in a
document that did not meet a uniqueness constraint defined by the application
usage. For each URI, element or attribute specified by the client which is
not unique, an element is present as the content of the error
element. Each element has a "field" attribute that contains a
relative URI identifying the XML element or attribute whose value needs to be
unique, but wasn't. The relative URI is relative to the document itself, and
will therefore start with the root element. The query component of the URI
MUST be present if the node selector portion of the URI contains namespace
prefixes. Since the "field" node selector is a valid HTTP URI, it MUST be
percent-encoded. The element can optionally contain a list of
<alt-value> elements. Each one is a suggested alternate value which does not
currently exist on the server.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
|
Methods inherited from class javax.servlet.ServletException |
getRootCause |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
UniquenessFailureException
public UniquenessFailureException(java.util.Map<java.lang.String,java.lang.String> uris)
- Constructor
- Parameters:
uris
- Map keyed by the uri's that failed to be proccess. The value
is the optional alternate value