{"image_url":null,"author_name":"mzp","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20081202%2Fexception\" title=\"Perl\u3067\u4f8b\u5916 - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Perl","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"type":"rich","description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e428\u3002Exception::Class - A module that allows you to declare real exception classes in Perl - metacpan.org\u3092\u4f7f\u3046\u3068Perl\u3067\u3082\u4f8b\u5916\u304c\u4f7f\u3048\u308b\u3089\u3057\u3044\u306e\u3067\u8a66\u3057\u3066\u307f\u308b\u3002 \u4f7f\u3044\u65b9 # try eval{ # throw InvalidArgument->throw(\"some_message\"); }; # catch if(my $e = Exception::Class->caught('InvalidArgument')){ ... } \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 #! /usr/bin/\u2026","width":"100%","blog_url":"https://mzp.hatenadiary.org/","version":"1.0","author_url":"https://blog.hatena.ne.jp/mzp/","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","height":"190","url":"https://mzp.hatenadiary.org/entry/20081202/exception","title":"Perl\u3067\u4f8b\u5916","provider_url":"https://hatena.blog","published":"2008-12-02 00:00:01","provider_name":"Hatena Blog"}