Skip to content
Permalink
Browse files

Added an X::Cannot::Map exception

  • Loading branch information...
lizmat committed Mar 12, 2019
1 parent 6e8df01 commit fd8a00a3df46b752ec9283904e55d943e33b9e50
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/core/Exception.pm6
@@ -2149,6 +2149,15 @@ my class X::Sequence::Deduction is Exception {
}
}

my class X::Cannot::Map is Exception {
has $.what = "(<unknown type>)";
has $.using = "(<an unknown expression>)";
has $.suggestion;
method message() {
my $message = "Cannot map a $.what using $.using";
$.suggestion ?? "$message\n$.suggestion" !! $message
}
}
my class X::Cannot::Lazy is Exception {
has $.action;
has $.what;

0 comments on commit fd8a00a

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