Camelia

src
    class X::Attribute::Undeclared is X::Undeclared { }

 
Thrown when code refers to an attribute that has not been declared. For example the code
    class A { method m { $!notthere } }

 
Produces the error
    Attribute $!notthere not declared in class A

 

Methods

package-kind

Returns the kind of package the attribute was used in (for example class , grammar )

package-name

Returns the name of the package in which the offensive attribute reference was performed.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: