class ThreadError

Raised when an invalid operation is attempted on a thread.

For example, when no other thread has been started:

Thread.stop

raises the exception:

ThreadError: stopping only thread