Added in API level 26

ClosedWatchServiceException

public class ClosedWatchServiceException
extends IllegalStateException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IllegalStateException
           ↳ java.nio.file.ClosedWatchServiceException


Unchecked exception thrown when an attempt is made to invoke an operation on a watch service that is closed.

Summary

Public constructors

ClosedWatchServiceException()

Constructs an instance of this class.

Inherited methods

Public constructors

ClosedWatchServiceException

Added in API level 26
public ClosedWatchServiceException ()

Constructs an instance of this class.