Class ExceptionConverter

java.lang.Object
org.apache.commons.vfs2.provider.webdav.ExceptionConverter

public final class ExceptionConverter extends Object
Converts WebDAV exceptions into FileSystemExceptions.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.commons.vfs2.FileSystemException
    generate(org.apache.jackrabbit.webdav.DavException cause)
    Generates a new instance of FileSystemException.
    static org.apache.commons.vfs2.FileSystemException
    generate(org.apache.jackrabbit.webdav.DavException cause, org.apache.jackrabbit.webdav.client.methods.DavMethod davMethod)
    Generates a new instance of FileSystemException.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • generate

      public static org.apache.commons.vfs2.FileSystemException generate(org.apache.jackrabbit.webdav.DavException cause) throws org.apache.commons.vfs2.FileSystemException
      Generates a new instance of FileSystemException.
      Parameters:
      cause - The cause of the new exception.
      Returns:
      A new FileSystemException.
      Throws:
      org.apache.commons.vfs2.FileSystemException - If an Exception is caught while generating a new instance.
    • generate

      public static org.apache.commons.vfs2.FileSystemException generate(org.apache.jackrabbit.webdav.DavException cause, org.apache.jackrabbit.webdav.client.methods.DavMethod davMethod) throws org.apache.commons.vfs2.FileSystemException
      Generates a new instance of FileSystemException.
      Parameters:
      cause - The cause of the new exception.
      davMethod - Ignored.
      Returns:
      A new FileSystemException.
      Throws:
      org.apache.commons.vfs2.FileSystemException - If an Exception is caught while generating a new instance.