Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
throw the first typed exception from within the setting
  • Loading branch information
moritz committed Nov 1, 2011
1 parent ee1a1c5 commit 8780040
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/CallFrame.pm
Expand Up @@ -48,7 +48,7 @@ my class CallFrame {
}

method callframe(Int $level = 0) {
die "not yet implemented";
die X::NYI.new(feature => 'Callframe.callframe');
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/core/Exceptions.pm
Expand Up @@ -4,8 +4,7 @@ my package X {
has $.message;

multi method Str(Base:D:) {
# Just a stub so far.
$!message.Str // 'Something went wrong'
$.message.Str // 'Something went wrong'
}
method ID() { ... }
}
Expand All @@ -19,7 +18,8 @@ my package X {
has $.column;
}

role NYI {
class NYI is Base {
method message() { "$.feature not yet implemented. Sorry. " }
has $.feature;
}

Expand Down

0 comments on commit 8780040

Please sign in to comment.