Package name.pachler.nio.file
Class ClosedWatchServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- name.pachler.nio.file.ClosedWatchServiceException
-
- All Implemented Interfaces:
java.io.Serializable
public class ClosedWatchServiceException extends java.lang.IllegalStateException
This exception is thrown by a WatchService method if that service has been closed. Typically, if WatchService.take() blocks because it is waiting for an event and another thread calls WatchService.close(), the thread waiting in take() will wake up, and a ClosedWatchServiceException is thrown.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClosedWatchServiceException()
-