LoginSignup
5

More than 5 years have passed since last update.

begin rescue else ensure

Posted at

どうしても忘れるから個人的メモ。

begin
rescue
  # 例外が発生したら
else
  # 例外がなかったら
ensure
  # 例外があってもなくても
end

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5