Permalink
Browse files

Implement Exception.die for convenience in handlers

  • Loading branch information...
lizmat committed Apr 18, 2014
1 parent 2180049 commit 99ff702ba75723b7b830c51dc650594cc369e348
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/Exception.pm
View
@@ -48,6 +48,7 @@ my class Exception {
}
}
method die(Exception:D:) { self.throw }
method fail(Exception:D:) {
try self.throw;
my $fail := Failure.new($!);

0 comments on commit 99ff702

Please sign in to comment.