public class FileSystemException extends IOException
Constructor and Description |
---|
FileSystemException(String file)
构造这个类的一个实例。
|
FileSystemException(String file, String other, String reason)
构造这个类的一个实例。
|
Modifier and Type | Method and Description |
---|---|
String |
getFile()
返回用于创建此异常的文件。
|
String |
getMessage()
返回详细信息字符串。
|
String |
getOtherFile()
返回用于创建此异常的其他文件。
|
String |
getReason()
返回解释文件系统操作失败的字符串的原因。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FileSystemException(String file)
file
-识别文件或字符串,如果不知道
null
。
public String getFile()
null
)
public String getOtherFile()
null
)
public String getReason()
public String getMessage()
getMessage
方法重写,继承类
Throwable
Throwable
实例的详细信息的字符串(可以
null
)。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.