class ThreadError

当尝试对线程进行无效操作时引发。

例如,当没有其他线程启动时

Thread.stop

这将引发以下异常

ThreadError: stopping only thread
note: use sleep to stop forever