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


method package-kind§

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

method package-name§

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


Type relations for X::Attribute::Undeclared
raku-type-graph X::Attribute::Undeclared X::Attribute::Undeclared X::Undeclared X::Undeclared X::Attribute::Undeclared->X::Undeclared Mu Mu Any Any Any->Mu Exception Exception Exception->Any X::Comp X::Comp X::Comp->Exception X::Undeclared->Exception X::Undeclared->X::Comp

Expand chart above