Package java.lang

Class 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 Detail

      • InterruptedException

        public InterruptedException()
        Constructs a new InterruptedException that includes the current stack trace.
      • InterruptedException

        public InterruptedException​(String detailMessage)
        Constructs a new InterruptedException with the current stack trace and the specified detail message.
        Parameters:
        detailMessage - the detail message for this exception.