Skip to content
Permalink
Browse files

Implement X::Language::TooLate

To be thrown when lang version pragma appears too late in the sauce
  • Loading branch information...
zoffixznet committed Oct 27, 2018
1 parent c9ecfb7 commit 3365094f9ef489118a214163f7bbdff50cde01a2
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/Exception.pm6
@@ -2965,6 +2965,11 @@ my class X::Language::Unsupported is Exception {
"No compiler available for Perl $.version"
}
}
my class X::Language::TooLate is Exception {
method message() {
"Too late to switch language version. Must be used as the very first statement."
}
}

my class X::Proc::Unsuccessful is Exception {
has $.proc;

0 comments on commit 3365094

Please sign in to comment.
You can’t perform that action at this time.