Skip to content
On this page

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class · Ruby 3.1

UncaughtThrowError

< ArgumentError 3 instance methods 1 class methods

Raised when throw is called with a tag which does not have corresponding catch block.

Example
throw "foo", "bar"

raises the exception:

UncaughtThrowError: uncaught throw "foo"

Class methods 1

Instance methods 3