|
|||||||||||
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
DavException
extends the Exception
class in order
to simplify handling of exceptional situations occuring during processing
of WebDAV requests and provides possibility to retrieve an Xml representation
of the error.
Constructor Summary | |
DavException(int errorCode)
Create a new DavException . |
|
DavException(int errorCode,
String message)
Create a new DavException . |
|
DavException(int errorCode,
String message,
org.jdom.Element conditionElement)
Create a new DavException . |
Method Summary | |
org.jdom.Element |
getError()
Returns the Xml representation of this DavException . |
int |
getErrorCode()
Return the error code attached to this DavException . |
String |
getStatusPhrase()
Return the status phrase corresponding to the error code attached to this DavException . |
static String |
getStatusPhrase(int errorCode)
Returns the status phrase for the given error code. |
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 DavException(int errorCode, String message)
DavException
.
errorCode
- integer specifying any of the status codes defined by
DavServletResponse
.message
- Human readable error message.public DavException(int errorCode)
DavException
.
errorCode
- integer specifying any of the status codes defined by
DavServletResponse
.public DavException(int errorCode, String message, org.jdom.Element conditionElement)
DavException
.
errorCode
- integer specifying any of the status codes defined by
DavServletResponse
.message
- conditionElement
- Method Detail |
public int getErrorCode()
DavException
.
public org.jdom.Element getError()
DavException
. In case
no Element
has been passed to the constructor, an empty DAV:error
element is returned.
public String getStatusPhrase()
DavException
.
getErrorCode()
public static String getStatusPhrase(int errorCode)
errorCode
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |