Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[S32::Exception] make X::Attribute::Undeclared subclass X::Undeclared

  • Loading branch information...
commit 0b0335d6d401f6baf782ced0afcc323a19288960 1 parent 7effcc2
@moritz moritz authored
Showing with 13 additions and 15 deletions.
  1. +13 −15 S32-setting-library/Exception.pod
View
28 S32-setting-library/Exception.pod
@@ -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.
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.