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 info0)
Constructs exception with the specified detail message.
|
FileSystemException(String code,
Object[] info,
Throwable throwable)
Deprecated.
Use instead
FileSystemException(String, Throwable, Object[]) . Will be removed in 3.0. |
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.
|
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, toString
public FileSystemException(String code)
code
- the error code of the message.public FileSystemException(String code, Object info0)
code
- the error code of the message.info0
- one context information.public FileSystemException(String code, Object info0, Throwable throwable)
code
- the error code of the message.info0
- one context information.throwable
- the cause.public FileSystemException(String code, Object... info)
code
- the error code of the message.info
- array of complementary info (context).public FileSystemException(String code, Throwable throwable)
code
- the error code of the message.throwable
- the original cause@Deprecated public FileSystemException(String code, Object[] info, Throwable throwable)
FileSystemException(String, Throwable, Object[])
. Will be removed in 3.0.code
- the error code of the message.info
- array of complementary info (context).throwable
- the cause.public FileSystemException(String code, Throwable throwable, Object... info)
code
- the error code of the message.info
- array of complementary info (context).throwable
- the cause.public FileSystemException(Throwable throwable)
throwable
- 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 null
FileSystemException
- if obj
is null
public 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 null
FileSystemException
- if obj
is null
public String getMessage()
getMessage
in class Throwable
public String getCode()
public String[] getInfo()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.