Java ã§ã¯ããè¦ããã try catch æã public Object bug() throws Exception [ throw new Exception("!!!"); } public void hoge() { try { Object obj = bug(); } catch(Exception e) { // } }ãªã㨠Perl ã§ã¯ä»¥ä¸ã®ããã«æ¸ããã¨ã§å®ç¾ã§ããããã§ãã ã¾ã£ããããªãã¦ç¯æã®ãªãè¨èªãªãã ï¼ç¬ï¼ sub bug { die "!!!"; } sub hoge { eval { my $obj = bug(); }; if ($@) { // } }bug ã®é¨åã¯ããã¡ãã£ã¨è¤é㧠DateTime->new(); ã§å¼æ°ãã¾ããã£ãã undef ãè¿ãã¦ãããã°ãããã®ã die ãã¦è½ã¡ãã¨ããåé¡ãçºè¦ããä¸è¨ã®ãããªæ段ã§åé¿
{{#tags}}- {{label}}
{{/tags}}