Skip to content

Commit

Permalink
Implement X::Language::TooLate
Browse files Browse the repository at this point in the history
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 3365094
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/Exception.pm6
Expand Up @@ -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;
Expand Down

0 comments on commit 3365094

Please sign in to comment.