perl6/doc/lib/X/Augment/NoSuchType
doc src
(title) class X::Augment::NoSuchType
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
(head2) package-kind
method package-kind() returns Str:D
Returns the kind of package (class, grammar) that is being tried to augment
(head2) package
Returns the name that was tried to augment, but which doesn't exist.