UncaughtThrowError
UncaughtThrowError
대응하는 catch 블록이 없는 태그로 throw를 호출했을 때 발생하는 예외예요.
throw "foo", "bar"
이 코드는 다음 예외를 발생시켜요:
UncaughtThrowError: uncaught throw "foo"
출처: Ruby 3.3 API
본문
tag → obj
throw가 호출된 태그 객체를 돌려줘요.
to_s → string
검사된(inspect) 태그와 함께 포맷된 메시지를 돌려줘요.
value → obj
throw가 호출된 반환 값을 돌려줘요.