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

public abstract class DavException extends Exception
Base class for all exception thrown inside WebDavEngine.
See Also:
  • Constructor Details

    • DavException

      protected DavException(WebDavStatus status)
      Initializes new instance.
      Parameters:
      status - WebDAV status code.
    • DavException

      protected DavException(WebDavStatus status, int extendedError)
      Initializes new instance.
      Parameters:
      status - WebDAV status code.
      extendedError - Extended error code used in X-MSDAVEXT_ERROR header.
    • DavException

      protected DavException(String message, WebDavStatus status)
      Initializes new instance.
      Parameters:
      message - Exception text.
      status - WebDAV status code.
    • DavException

      protected DavException(String message, WebDavStatus status, int extendedError)
      Initializes new instance.
      Parameters:
      message - Exception text.
      status - WebDAV status code.
      extendedError - Extended error code used in X-MSDAVEXT_ERROR header.
    • DavException

      protected DavException(String message, Throwable throwable, WebDavStatus status)
      Initializes new instance.
      Parameters:
      message - Exception text.
      throwable - Original exception.
      status - WebDAV status code.
    • DavException

      protected DavException(String message, Throwable throwable, WebDavStatus status, int extendedError)
      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

      protected DavException(String message, WebDavStatus status, String ns, 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(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

      public DavException(Throwable throwable, WebDavStatus status)
      Initializes new instance.
      Parameters:
      throwable - Original exception.
      status - WebDAV status code.
    • DavException

      protected DavException(Throwable throwable, WebDavStatus status, int extendedError)
      Initializes new instance.
      Parameters:
      throwable - Original exception.
      status - WebDAV status code.
      extendedError - Extended error code used in X-MSDAVEXT_ERROR header.
  • Method Details

    • getStatus

      public WebDavStatus getStatus()
      Retrieves WebDAV status.
      Returns:
      WebDAV status code.
    • getLocalName

      public 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 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(String namespace)
      Sets XML element namespace name.
      Parameters:
      namespace - Namespace.
    • setLocalName

      public void setLocalName(String localName)
      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.