class X::Method::NotFound is Exception {}

Thrown when the user tries to call a method that isn't there.

For example


No such method 'no-such' for invocant of type 'Int'


method method

method method(--> Str:D)

Returns the method name that was invoked.

method typename

method typename(--> Str:D)

Returns the name of the invocant type.

method private

method private(--> Bool:D)

Returns True for private methods, and False for public methods.

method addendum

method addendum(--> Str:D)

Returns additional explanations or hints.

Note: addendum was introduced in Rakudo 2019.03.