Google is committed to advancing racial equity for Black communities. See how.
Added in API level 1

IllegalThreadStateException

open class IllegalThreadStateException : IllegalArgumentException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.lang.RuntimeException
   ↳ java.lang.IllegalArgumentException
   ↳ java.lang.IllegalThreadStateException

Thrown to indicate that a thread is not in an appropriate state for the requested operation. See, for example, the suspend and resume methods in class Thread.

Summary

Public constructors

Constructs an IllegalThreadStateException with no detail message.

Constructs an IllegalThreadStateException with the specified detail message.

Public constructors

<init>

Added in API level 1
IllegalThreadStateException()

Constructs an IllegalThreadStateException with no detail message.

<init>

Added in API level 1
IllegalThreadStateException(s: String!)

Constructs an IllegalThreadStateException with the specified detail message.

Parameters
s String!: the detail message.