public class

InterruptedException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.InterruptedException

Class Overview

Thrown when a thread is waiting, sleeping, or otherwise paused for a long time and another thread interrupts it using the interrupt method in class Thread.

Summary

Public Constructors
InterruptedException()
Constructs an InterruptedException with no detail message.
InterruptedException(String s)
Constructs an InterruptedException with the specified detail message.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public InterruptedException ()

Constructs an InterruptedException with no detail message.

public InterruptedException (String s)

Constructs an InterruptedException with the specified detail message.

Parameters
s the detail message.