org.apache.commons.vfs2
Class FileSystemException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.commons.vfs2.FileSystemException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FileNotFolderException, FileNotFoundException, FileTypeHasNoContentException

public class FileSystemException
extends IOException

Thrown for file system errors.

Author:
Commons VFS team
See Also:
Serialized Form

Constructor Summary
FileSystemException(String code)
          Constructs exception with the specified detail message.
FileSystemException(String code, Object info0)
          Constructs exception with the specified detail message.
FileSystemException(String code, Object[] info)
          Constructs exception with the specified detail message.
FileSystemException(String code, Object[] info, Throwable throwable)
          Constructs exception with the specified detail message.
FileSystemException(String code, Object info0, Throwable throwable)
          Constructs exception with the specified detail message.
FileSystemException(String code, Throwable throwable)
          Constructs exception with the specified detail message.
FileSystemException(Throwable throwable)
          Constructs wrapper exception.
 
Method Summary
 Throwable getCause()
          Retrieve root cause of the exception.
 String getCode()
          Retrieve error code of the exception.
 String[] getInfo()
          Retrieve array of complementary info (context).
 String getMessage()
          retrieve message from bundle.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, 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

FileSystemException

public FileSystemException(String code)
Constructs exception with the specified detail message.

Parameters:
code - the error code of the message.

FileSystemException

public FileSystemException(String code,
                           Object info0)
Constructs exception with the specified detail message.

Parameters:
code - the error code of the message.
info0 - one context information.

FileSystemException

public FileSystemException(String code,
                           Object info0,
                           Throwable throwable)
Constructs exception with the specified detail message.

Parameters:
code - the error code of the message.
info0 - one context information.
throwable - the cause.

FileSystemException

public FileSystemException(String code,
                           Object[] info)
Constructs exception with the specified detail message.

Parameters:
code - the error code of the message.
info - array of complementary info (context).

FileSystemException

public FileSystemException(String code,
                           Throwable throwable)
Constructs exception with the specified detail message.

Parameters:
code - the error code of the message.
throwable - the original cause

FileSystemException

public FileSystemException(String code,
                           Object[] info,
                           Throwable throwable)
Constructs exception with the specified detail message.

Parameters:
code - the error code of the message.
info - array of complementary info (context).
throwable - the cause.

FileSystemException

public FileSystemException(Throwable throwable)
Constructs wrapper exception.

Parameters:
throwable - the root cause to wrap.
Method Detail

getMessage

public String getMessage()
retrieve message from bundle.

Overrides:
getMessage in class Throwable
Returns:
The exception message.

getCause

public final Throwable getCause()
Retrieve root cause of the exception.

Overrides:
getCause in class Throwable
Returns:
the root cause

getCode

public String getCode()
Retrieve error code of the exception. Could be used as key for internationalization.

Returns:
the code.

getInfo

public String[] getInfo()
Retrieve array of complementary info (context). Could be used as parameter for internationalization.

Returns:
the context info.


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.