{"author_url":"https://blog.hatena.ne.jp/rubytips86/","title":"Ruby\u306e\u4f8b\u5916\u51e6\u7406","description":"Ruby\u306e\u4f8b\u5916\u51e6\u7406\u306fbegin-rescue\u3067\u884c\u3046\u3002 begin # \u51e6\u74061 rescue # \u51e6\u74062 else # \u51e6\u74063 ensure # \u51e6\u74064 end begin\u7bc0\u306e\u51e6\u74061\u3067\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u3068\u3001rescue\u7bc0\u306e\u51e6\u74062\u304c\u5b9f\u884c\u3055\u308c\u308b\u3002 begin\u7bc0\u306e\u51e6\u74061\u3067\u4f8b\u5916\u304c\u767a\u751f\u3057\u306a\u3051\u308c\u3070\u3001else\u7bc0\u306e\u51e6\u74063\u304c\u5b9f\u884c\u3055\u308c\u308b\u3002 \u4f8b\u5916\u304c\u767a\u751f\u3057\u3066\u3082\u3057\u306a\u304f\u3066\u3082ensure\u7bc0\u306e\u51e6\u74064\u306f\u5fc5\u305a\u5b9f\u884c\u3055\u308c\u308b\u3002rescue\u7bc0\u306b\u306f\u6355\u6349\u3059\u308b\u4f8b\u5916\u30af\u30e9\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 \u7701\u7565\u6642\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u4f8b\u5916\u30af\u30e9\u30b9\u306fStandardError\u3067\u3042\u308b\u3002 \u4ee5\u4e0b\u306f\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u306b\u4f34\u3046IOException\u3092rescue\u3059\u308b\u4f8b\u3067\u3042\u308b\u3002 begi\u2026","image_url":null,"width":"100%","published":"2014-03-24 20:22:22","author_name":"rubytips86","blog_url":"https://rubytips86.hatenablog.com/","provider_url":"https://hatena.blog","blog_title":"Ruby Tips!","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubytips86.hatenablog.com%2Fentry%2F2014%2F03%2F24%2F202222\" title=\"Ruby\u306e\u4f8b\u5916\u51e6\u7406 - Ruby Tips!\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","type":"rich","version":"1.0","url":"https://rubytips86.hatenablog.com/entry/2014/03/24/202222","categories":[],"height":"190"}