Camelia

class X::Augment::NoSuchType

src
    class X::Augment::NoSuchType does X::Comp { }

 
Thrown when trying to agument a type which doesn't exist. For example
    use MONKEY_TYPING;
    augment class NoSuch { }

 
dies with
    ===SORRY!===
    You tried to augment class NoSuch, but it does not exist

 

Methods

package-kind

    method package-kind() returns Str:D

 
Returns the kind of package (class, grammar) that is being tried to augment

package

Returns the name that was tried to augment, but which doesn't exist.

Perl 6 Tricks and Treats newsletter

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