class ThreadError - Ruby 2.2.4 Core API Reference API Reference

Ruby 2.2 Core API

class ThreadError

Raised when an invalid operation is attempted on a thread.

For example, when no other thread has been started:

Thread.stop

This will raises the following exception:

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

In Files

  • thread.c

Parent

StandardError