public final class DirectoryIteratorException extends ConcurrentModificationException
IOException
使用getCause()
方法。
DirectoryStream
, Serialized Form
Constructor and Description |
---|
DirectoryIteratorException(IOException cause)
构造这个类的一个实例。
|
Modifier and Type | Method and Description |
---|---|
IOException |
getCause()
返回此异常的原因。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DirectoryIteratorException(IOException cause)
cause
-在
IOException
导致该目录迭代失败
NullPointerException
- 如果原因是
null
public IOException getCause()
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.