Try::Lite ãããå®å ¨ãªä¾å¤ãã£ãããç°¡åã«ã I wrote too safety exception handling module. https://metacpan.org/release/Try-Lite $@ ã®å¦çãå®å ¨ã«åãæ±ãä¾å¤å¦çã¢ã¸ã¥ã¼ã«ã¨ãã¦ã¯ Try::Tiny ããã¾ãã«ãæåã§ãããå¥ã®å®è£ ãä½ã£ã¦ã¿ã¾ããã ã¢ããªã±ã¼ã·ã§ã³ãä½ãæã¯ãããä¾å¤ã¯ã©ã¹ãä½ã£ã¦ãã die bless {}, $foo_class; ã¿ãããªå½¢ã®ãªãã¸ã§ã¯ãã®ä¾å¤ãæãã¦ãä¸æµã®æ¹ã§ eval ã§åãåã£ã¦ãã $@ ã® isa ã調ã¹ã¦ä¾å¤ã«å¿ããå¦çãããäºãå¤ãã¨æãã¾ãã ããã§åé¡ã«ãªãã®ããåãåã£ãä¾å¤ã®ä¸ããä¸è¦ãªç©ããããã«ä¸ä½ã«åã㦠rethrow ããããã§ããã rethrow ããã®ãå¿ãã¦ãã¾ãã¨ã¯ãªãã£ã«ã«ãªãã°ãçºçãããè¦å ã¨ãªãã¾
{{#tags}}- {{label}}
{{/tags}}