Skip to content

Instantly share code, notes, and snippets.

@mattn
Created February 19, 2013 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattn/4984828 to your computer and use it in GitHub Desktop.
Save mattn/4984828 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use utf8;
use Perl6::Say;
use Try::Lite;
package 俺の例外;
use parent 'Exception::Tiny';
package main;
try {
俺の例外->throw();
} @{
'俺の例外' => sub {
say "---> $@";
},
'*' => sub {
say "--->> $@";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment