Package java.lang
Class InterruptedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.InterruptedException
-
- All Implemented Interfaces:
Serializable
public class InterruptedException extends Exception
Thrown when a waiting thread is activated before the condition it was waiting for has been satisfied.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InterruptedException()Constructs a newInterruptedExceptionthat includes the current stack trace.InterruptedException(String detailMessage)Constructs a newInterruptedExceptionwith the current stack trace and the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InterruptedException
public InterruptedException()
Constructs a newInterruptedExceptionthat includes the current stack trace.
-
InterruptedException
public InterruptedException(String detailMessage)
Constructs a newInterruptedExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-
-