class X::Method::NotFound
ErrorsCollection

class X::Method::NotFound

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'

Methods

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.