Permalink
Browse files

[S32::Exception] switch "package-type" to "package-kind".

This is not about types (but about types of the meta object), "kind" seems more appropriate. masak++
  • Loading branch information...
1 parent 2f1d76f commit 7effcc203ade259e3fbc3b9afd71f34dd00b892a @moritz moritz committed Aug 17, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 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: 15
+ Version: 16
The document is a draft.
@@ -256,10 +256,10 @@ TODO: include the actual package, not the package name.
my class X::Attribute::Undeclared does X::Comp {
has $.name;
- has $.package-type;
+ has $.package-kind;
has $.package-name;
method message() {
- "Attribute $.name not declared in $.package-type $.package-name";
+ "Attribute $.name not declared in $.package-kind $.package-name";
}
}
@@ -412,8 +412,8 @@ Thrown when trying to declare an attribute inside a package which doesn't
support attributes.
my class X::Attribute::Package does X::Comp {
- has $.package-type;
- method message() { "A $.package-type cannot have attributes" }
+ has $.package-kind;
+ method message() { "A $.package-kind cannot have attributes" }
}
=head3 X::Attribute::NoPackage
@@ -471,18 +471,18 @@ Thrown when an anonymous multi is being declared.
Thrown when trying to augment an anonymous package.
my class X::Anon::Augment does X::Comp {
- has $.package-type;
- method message() { "Cannot augment anonymous $.package-type" }
+ has $.package-kind;
+ method message() { "Cannot augment anonymous $.package-kind" }
}
=head3 X::Augment::NoSuchType
Thrown when trying to agument a type which doesn't exist.
my class X::Augment::NoSuchType does X::Comp {
- has $.package-type;
+ has $.package-kind;
has $.package;
- method message() { "You tried to augment $.package-type $.package, but it does not exist" }
+ method message() { "You tried to augment $.package-kind $.package, but it does not exist" }
}
=head3 X::Package::Stubbed

0 comments on commit 7effcc2

Please sign in to comment.