Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
class X::TypeCheck (not yet used)
  • Loading branch information
moritz committed Apr 16, 2012
1 parent 442db9f commit f05a64d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/core/Exception.pm
Expand Up @@ -552,4 +552,14 @@ my class X::Sequence::Deduction is Exception {
method message() { 'Unable to deduce sequence' }
}

my class X::TypeCheck is Exception {
has $.operation;
has $.got;
has $.exepcted;
method message() {
"Type check failed in $.operation; expected '{$.expected.^name}' but got '{$.got.^name}'";

}
}

# vim: ft=perl6

0 comments on commit f05a64d

Please sign in to comment.