Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

java.nio.file
Class DirectoryIteratorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.util.ConcurrentModificationException
                  extended by java.nio.file.DirectoryIteratorException
All Implemented Interfaces:
Serializable

public final class DirectoryIteratorException
extends ConcurrentModificationException

Runtime exception thrown if an I/O error is encountered when iterating over the entries in a directory. The I/O error is retrieved as an IOException using the getCause() method.

Since:
1.7
See Also:
DirectoryStream, Serialized Form

Constructor Summary
Constructor and Description
DirectoryIteratorException(IOException cause)
          Constructs an instance of this class.
 
Method Summary
Modifier and Type Method and Description
 IOException getCause()
          Returns the cause of this exception.
 
Methods inherited from class java.lang.Throwable
addSuppressedException, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressedExceptions, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectoryIteratorException

public DirectoryIteratorException(IOException cause)
Constructs an instance of this class.

Parameters:
cause - the IOException that caused the directory iteration to fail
Throws:
NullPointerException - if the cause is null
Method Detail

getCause

public IOException getCause()
Returns the cause of this exception.

Overrides:
getCause in class Throwable
Returns:
the cause

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

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, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.