com.ithit.webdav.server.exceptions
Class DavException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ithit.webdav.server.exceptions.DavException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConflictException, FailedDependencyException, LockedException, MultistatusException, PreconditionFailedException, ServerException

public abstract class DavException
extends java.lang.Exception

Base class for all exception thrown inside WebDavEngine.

See Also:
Serialized Form

Constructor Summary
protected DavException(java.lang.String message, java.lang.Throwable throwable, WebDavStatus status)
          Initializes new instance.
protected DavException(java.lang.String message, java.lang.Throwable throwable, WebDavStatus status, java.lang.String ns, java.lang.String elName)
          Initializes new instance.
protected DavException(java.lang.String message, WebDavStatus status)
          Initializes new instance.
protected DavException(java.lang.String message, WebDavStatus status, java.lang.String ns, java.lang.String elName)
          Initializes new instance.
  DavException(java.lang.Throwable throwable, WebDavStatus status)
          Initializes new instance.
protected DavException(WebDavStatus status)
          Initializes new instance.
 
Method Summary
 java.lang.String getLocalName()
          Retrieves XML element name that will be sent to client in HTTP response so it can identify error more precisely.
 java.lang.String getNamespace()
          Retrieves namespace of XML element that will be sent to client in HTTP response so it can identify error more precisely.
 WebDavStatus getStatus()
          Retrieves WebDAV status.
 void setLocalName(java.lang.String localName)
          Sets local element name.
 void setNamespace(java.lang.String namespace)
          Sets XML element namespace name.
 
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

DavException

protected DavException(WebDavStatus status)
Initializes new instance.

Parameters:
status - WebDAV status code.

DavException

protected DavException(java.lang.String message,
                       WebDavStatus status)
Initializes new instance.

Parameters:
message - exception text.
status - WebDAV status code.

DavException

protected DavException(java.lang.String message,
                       java.lang.Throwable throwable,
                       WebDavStatus status)
Initializes new instance.

Parameters:
message - exception text.
throwable - original exception.
status - WebDAV status code.

DavException

protected DavException(java.lang.String message,
                       WebDavStatus status,
                       java.lang.String ns,
                       java.lang.String elName)
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(java.lang.String message,
                       java.lang.Throwable throwable,
                       WebDavStatus status,
                       java.lang.String ns,
                       java.lang.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

public DavException(java.lang.Throwable throwable,
                    WebDavStatus status)
Initializes new instance.

Parameters:
throwable - original exception.
status - WebDAV status code.
Method Detail

getStatus

public WebDavStatus getStatus()
Retrieves WebDAV status.

Returns:
WebDAV status code.

getLocalName

public java.lang.String 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

public java.lang.String 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

public void setNamespace(java.lang.String namespace)
Sets XML element namespace name.

Parameters:
namespace - namespace.

setLocalName

public void setLocalName(java.lang.String localName)
Sets local element name.

Parameters:
localName - XML element name.


Copyright © 2009 ITHit. All Rights Reserved.