public class FileSystemException extends IOException
| Constructor and Description |
|---|
FileSystemException(String code)
Constructs exception with the specified detail message.
|
FileSystemException(String code,
Object... info)
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 cause)
Deprecated.
Use instead
FileSystemException(String, Throwable, Object[]). Will be removed in 3.0. |
FileSystemException(String code,
Object info,
Throwable cause)
Constructs exception with the specified detail message and cause.
|
FileSystemException(String code,
Throwable cause)
Constructs exception with the specified detail message.
|
FileSystemException(String code,
Throwable cause,
Object... info)
Constructs exception with the specified detail message.
|
FileSystemException(Throwable cause)
Constructs wrapper exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Retrieves error code of the exception.
|
String[] |
getInfo()
Retrieves array of complementary info (context).
|
String |
getMessage()
Retrieves message from bundle.
|
static <T> T |
requireNonNull(T obj,
String code)
Throws a FileSystemException when the given object is null.
|
static <T> T |
requireNonNull(T obj,
String code,
Object... info)
Throws a FileSystemException when the given object is null.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic FileSystemException(String code)
code - the error code of the message.public FileSystemException(String code, Object info)
code - the error code of the message.info - one context information.public FileSystemException(String code, Object... info)
code - the error code of the message.info - array of complementary info (context).public FileSystemException(String code, Object info, Throwable cause)
code - the error code of the message.info - one context information.cause - the cause.@Deprecated public FileSystemException(String code, Object[] info, Throwable cause)
FileSystemException(String, Throwable, Object[]). Will be removed in 3.0.code - the error code of the message.info - array of complementary info (context).cause - the cause.public FileSystemException(String code, Throwable cause)
code - the error code of the message.cause - the original causepublic FileSystemException(String code, Throwable cause, Object... info)
code - the error code of the message.info - array of complementary info (context).cause - the cause.public FileSystemException(Throwable cause)
cause - the root cause to wrap.public static <T> T requireNonNull(T obj,
String code)
throws FileSystemException
T - the type of the referenceobj - the object reference to check for null.code - message used when FileSystemException is thrownobj if not nullFileSystemException - if obj is nullpublic static <T> T requireNonNull(T obj,
String code,
Object... info)
throws FileSystemException
T - the type of the referenceobj - the object reference to check for null.code - message used when FileSystemException is throwninfo - one context information.obj if not nullFileSystemException - if obj is nullpublic String getCode()
public String[] getInfo()
public String getMessage()
getMessage in class ThrowableCopyright © 2002–2025 The Apache Software Foundation. All rights reserved.