Package org.apache.commons.vfs2
Class FileSystemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.commons.vfs2.FileSystemException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FileNotFolderException
,FileNotFoundException
,FileTypeHasNoContentException
Thrown for file system errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemException
(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) Deprecated.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
(String code, Throwable throwable, Object... info) Constructs exception with the specified detail message.FileSystemException
(Throwable throwable) Constructs wrapper exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FileSystemException
Constructs exception with the specified detail message.- Parameters:
code
- the error code of the message.
-
FileSystemException
Constructs exception with the specified detail message.- Parameters:
code
- the error code of the message.info0
- one context information.
-
FileSystemException
Constructs exception with the specified detail message.- Parameters:
code
- the error code of the message.info0
- one context information.throwable
- the cause.
-
FileSystemException
Constructs exception with the specified detail message.- Parameters:
code
- the error code of the message.info
- array of complementary info (context).
-
FileSystemException
Constructs exception with the specified detail message.- Parameters:
code
- the error code of the message.throwable
- the original cause
-
FileSystemException
Deprecated.Use insteadFileSystemException(String, Throwable, Object[])
. Will be removed in 3.0.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
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
Constructs wrapper exception.- Parameters:
throwable
- the root cause to wrap.
-
-
Method Details
-
getMessage
Retrieves message from bundle.- Overrides:
getMessage
in classThrowable
- Returns:
- The exception message.
-
getCode
Retrieves error code of the exception. Could be used as key for internationalization.- Returns:
- the code.
-
getInfo
Retrieves array of complementary info (context). Could be used as parameter for internationalization.- Returns:
- the context info.
-
FileSystemException(String, Throwable, Object[])
.