Ruby 3.4 リファレンスマニュアル

instance method UncaughtThrowError#tag

tag -> objectRuby 2.2.0 から[permalink][rdoc][edit]

Kernel.#throw に指定した tag を返します。

例:
def do_complicated_things
  throw :uncaught_label
end

begin
  do_complicated_things
rescue UncaughtThrowError => ex
  p ex.tag # => ":uncaught_label"
end