Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement Exception.die for convenience in handlers
  • Loading branch information
lizmat committed Apr 18, 2014
1 parent 2180049 commit 99ff702
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Exception.pm
Expand Up @@ -48,6 +48,7 @@ my class Exception {
}
}

method die(Exception:D:) { self.throw }
method fail(Exception:D:) {
try self.throw;
my $fail := Failure.new($!);
Expand Down

0 comments on commit 99ff702

Please sign in to comment.