|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.jackrabbit.webdav.DavException
org.apache.jackrabbit.webdav.jcr.JcrDavException
public class JcrDavException
JcrDavException extends the DavException in order to
wrap various repository exceptions.
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.webdav.DavException |
|---|
XML_ERROR |
| Constructor Summary | |
|---|---|
JcrDavException(javax.jcr.RepositoryException cause)
Same as JcrDavException(Throwable, int) where the
error code is retrieved from an internal mapping. |
|
JcrDavException(java.lang.Throwable cause,
int errorCode)
Create a new JcrDavException. |
|
| Method Summary | |
|---|---|
boolean |
hasErrorCondition()
Always returns true. |
org.w3c.dom.Element |
toXml(org.w3c.dom.Document document)
Returns a DAV:error Xml element containing the exceptions class and the message as child elements. |
| Methods inherited from class org.apache.jackrabbit.webdav.DavException |
|---|
getErrorCode, getStatusPhrase, getStatusPhrase |
| 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 |
| Constructor Detail |
|---|
public JcrDavException(java.lang.Throwable cause,
int errorCode)
JcrDavException.
cause - The original cause of this DavException. Note, that
in contrast to Throwable.Throwable(Throwable), Throwable.Throwable(String, Throwable) and
Throwable.initCause(Throwable) the cause must not be null.errorCode - Status code for the response.
java.lang.NullPointerException - if the given exception is null.DavException.DavException(int, String),
DavException.DavException(int)public JcrDavException(javax.jcr.RepositoryException cause)
JcrDavException(Throwable, int) where the
error code is retrieved from an internal mapping.
cause - Cause of this DavException
java.lang.NullPointerException - if the given exception is null.JcrDavException(Throwable, int)| Method Detail |
|---|
public boolean hasErrorCondition()
hasErrorCondition in class DavExceptionpublic org.w3c.dom.Element toXml(org.w3c.dom.Document document)
toXml in interface XmlSerializabletoXml in class DavExceptiondocument -
XmlSerializable.toXml(Document)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||