Skip to content
On this page

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.4

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