Package java.lang

Class IllegalThreadStateException

All Implemented Interfaces:
Serializable

public class IllegalThreadStateException
extends IllegalArgumentException
Thrown when an operation is attempted which is not possible given the state that the executing thread is in.
See Also:
Serialized Form
  • Constructor Details

    • IllegalThreadStateException

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

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