Class DavException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ithit.webdav.server.exceptions.DavException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConflictException
,FailedDependencyException
,LockedException
,MultistatusException
,PreconditionFailedException
,ServerException
Base class for all exception thrown inside WebDavEngine.
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
DavException
(WebDavStatus status) Initializes new instance.protected
DavException
(WebDavStatus status, int extendedError) Initializes new instance.protected
DavException
(String message, WebDavStatus status) Initializes new instance.protected
DavException
(String message, WebDavStatus status, int extendedError) Initializes new instance.protected
DavException
(String message, WebDavStatus status, String ns, String elName) Initializes new instance.protected
DavException
(String message, WebDavStatus status, String ns, String elName, int extendedError) Initializes new instance.protected
DavException
(String message, Throwable throwable, WebDavStatus status) Initializes new instance.protected
DavException
(String message, Throwable throwable, WebDavStatus status, int extendedError) Initializes new instance.protected
DavException
(String message, Throwable throwable, WebDavStatus status, String ns, String elName) Initializes new instance.protected
DavException
(String message, Throwable throwable, WebDavStatus status, String ns, String elName, int extendedError) Initializes new instance.DavException
(Throwable throwable, WebDavStatus status) Initializes new instance.protected
DavException
(Throwable throwable, WebDavStatus status, int extendedError) Initializes new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves extended error code used in X-MSDAVEXT_ERROR header.Retrieves XML element name that will be sent to client in HTTP response so it can identify error more precisely.Retrieves namespace of XML element that will be sent to client in HTTP response so it can identify error more precisely.Retrieves WebDAV status.void
setLocalName
(String localName) Sets local element name.void
setNamespace
(String namespace) Sets XML element namespace name.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DavException
Initializes new instance.- Parameters:
status
- WebDAV status code.
-
DavException
Initializes new instance.- Parameters:
status
- WebDAV status code.extendedError
- Extended error code used in X-MSDAVEXT_ERROR header.
-
DavException
Initializes new instance.- Parameters:
message
- Exception text.status
- WebDAV status code.
-
DavException
Initializes new instance.- Parameters:
message
- Exception text.status
- WebDAV status code.extendedError
- Extended error code used in X-MSDAVEXT_ERROR header.
-
DavException
Initializes new instance.- Parameters:
message
- Exception text.throwable
- Original exception.status
- WebDAV status code.
-
DavException
Initializes new instance.- Parameters:
message
- Exception text.throwable
- Original exception.status
- WebDAV status code.extendedError
- Extended error code used in X-MSDAVEXT_ERROR header.
-
DavException
Initializes new instance.- Parameters:
message
- Message.status
- WebDAV status code.ns
- Namespace of XML element that will be sent to client in HTTP response so it can identify error more precisely.elName
- Name of element.
-
DavException
protected DavException(String message, WebDavStatus status, String ns, String elName, int extendedError) Initializes new instance.- Parameters:
message
- Message.status
- WebDAV status code.ns
- Namespace of XML element that will be sent to client in HTTP response so it can identify error more precisely.elName
- Name of element.extendedError
- Extended error code used in X-MSDAVEXT_ERROR header.
-
DavException
protected DavException(String message, Throwable throwable, WebDavStatus status, String ns, String elName) Initializes new instance.- Parameters:
message
- Message.throwable
- original exception.status
- WebDAV status code.ns
- Namespace of XML element that will be sent to client in HTTP response so it can identify error more precisely.elName
- Name of element.
-
DavException
protected DavException(String message, Throwable throwable, WebDavStatus status, String ns, String elName, int extendedError) Initializes new instance.- Parameters:
message
- Message.throwable
- original exception.status
- WebDAV status code.ns
- Namespace of XML element that will be sent to client in HTTP response so it can identify error more precisely.elName
- Name of element.extendedError
- Extended error code used in X-MSDAVEXT_ERROR header.
-
DavException
Initializes new instance.- Parameters:
throwable
- Original exception.status
- WebDAV status code.
-
DavException
Initializes new instance.- Parameters:
throwable
- Original exception.status
- WebDAV status code.extendedError
- Extended error code used in X-MSDAVEXT_ERROR header.
-
-
Method Details
-
getStatus
Retrieves WebDAV status.- Returns:
- WebDAV status code.
-
getLocalName
Retrieves XML element name that will be sent to client in HTTP response so it can identify error more precisely.- Returns:
- Element name.
-
getNamespace
Retrieves namespace of XML element that will be sent to client in HTTP response so it can identify error more precisely.- Returns:
- Namespace.
-
setNamespace
Sets XML element namespace name.- Parameters:
namespace
- Namespace.
-
setLocalName
Sets local element name.- Parameters:
localName
- XML element name.
-
getExtendedError
public int getExtendedError()Retrieves extended error code used in X-MSDAVEXT_ERROR header.- Returns:
- Extended error.
-