Error due to calling a method that isn't there
class X::Method::NotFound is Exception {}
Thrown when the user tries to call a method that isn't there.
For example
1.no-such
throws
No such method 'no-such' for invocant of type 'Int'
method method(--> Str:D)
Returns the method name that was invoked.
method typename(--> Str:D)
Returns the name of the invocant type.
method private(--> Bool:D)
Returns True for private methods, and False for public methods.
method addendum(--> Str:D)
Returns additional explanations or hints.
Note: addendum was introduced in Rakudo 2019.03.