Skip to content

Commit

Permalink
[S32::Exception] make X::Attribute::Undeclared subclass X::Undeclared
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 17, 2012
1 parent 7effcc2 commit 0b0335d
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions S32-setting-library/Exception.pod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Authors of previous versions of this document:
Created: 26 Feb 2009

Last Modified: 17 August 2012
Version: 16
Version: 17

The document is a draft.

Expand Down Expand Up @@ -249,20 +249,6 @@ explicit block.
}
}

=head3 X::Attribute::Undeclared

Thrown when an undeclared attribute is being referenced.
TODO: include the actual package, not the package name.

my class X::Attribute::Undeclared does X::Comp {
has $.name;
has $.package-kind;
has $.package-name;
method message() {
"Attribute $.name not declared in $.package-kind $.package-name";
}
}

=head3 X::Redeclaration

Thrown when a symbol is redeclared
Expand All @@ -288,6 +274,18 @@ Occurs when a symbol is being referenced that needs to be declared, but isn't.
}
}

=head3 X::Attribute::Undeclared

Thrown when an undeclared attribute is being referenced.

my class X::Attribute::Undeclared is X::Undeclared {
has $.package-kind;
has $.package-name;
method message() {
"Attribute $.name not declared in $.package-kind $.package-name";
}
}

=head3 X::Phaser::Multiple

Thrown when multiple phasers of the same type occur in a block, but only one
Expand Down

0 comments on commit 0b0335d

Please sign in to comment.