org.apache.commons.vfs
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.vfs.FileSystemException
All Implemented Interfaces:
java.io.Serializable

public class FileSystemException
extends java.io.IOException

Thrown for file system errors.

Version:
$Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
Author:
Adam Murdoch
See Also:
Serialized Form

Field Summary
private  java.lang.String code
          The message code.
private  java.lang.String[] info
          array of complementary info (context).
private  java.lang.Throwable throwable
          The Throwable that caused this exception to be thrown.
 
Constructor Summary
FileSystemException(java.lang.String code)
          Constructs exception with the specified detail message.
FileSystemException(java.lang.String code, java.lang.Object info0)
          Constructs exception with the specified detail message.
FileSystemException(java.lang.String code, java.lang.Object[] info)
          Constructs exception with the specified detail message.
FileSystemException(java.lang.String code, java.lang.Object[] info, java.lang.Throwable throwable)
          Constructs exception with the specified detail message.
FileSystemException(java.lang.String code, java.lang.Object info0, java.lang.Throwable throwable)
          Constructs exception with the specified detail message.
FileSystemException(java.lang.String code, java.lang.Throwable throwable)
          Constructs exception with the specified detail message.
FileSystemException(java.lang.Throwable throwable)
          Constructs wrapper exception.
 
Method Summary
 java.lang.Throwable getCause()
          Retrieve root cause of the exception.
 java.lang.String getCode()
          Retrieve error code of the exception.
 java.lang.String[] getInfo()
          Retrieve array of complementary info (context).
 java.lang.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
 

Field Detail

throwable

private final java.lang.Throwable throwable
The Throwable that caused this exception to be thrown.


code

private final java.lang.String code
The message code.


info

private final java.lang.String[] info
array of complementary info (context).

Constructor Detail

FileSystemException

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

Parameters:
code - the error code of the message.

FileSystemException

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

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

FileSystemException

public FileSystemException(java.lang.String code,
                           java.lang.Object info0,
                           java.lang.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(java.lang.String code,
                           java.lang.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(java.lang.String code,
                           java.lang.Throwable throwable)
Constructs exception with the specified detail message.

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

FileSystemException

public FileSystemException(java.lang.String code,
                           java.lang.Object[] info,
                           java.lang.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(java.lang.Throwable throwable)
Constructs wrapper exception.

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

getMessage

public java.lang.String getMessage()
retrieve message from bundle

Overrides:
getMessage in class java.lang.Throwable

getCause

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

Overrides:
getCause in class java.lang.Throwable
Returns:
the root cause

getCode

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

Returns:
the code.

getInfo

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

Returns:
the context info.