Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (19 sloc) 820 Bytes
=begin pod =TITLE class X::Method::InvalidQualifier =SUBTITLE Error due to calling a qualified method from an ineligible class class X::Method::InvalidQualifier is Exception { } Thrown when a method is call in the form C<$invocant.TheClass::method> if <$invocant> does not conform to C. For example 1.Str::split(/a/); CATCH { default { put .^name, ': ', .Str } }; # OUTPUT: «X::Method::InvalidQualifier: Cannot dispatch to method split on Str because it is not inherited or done by Int␤» =head1 Methods =head2 method method method method(--> Str:D) Returns the name of the (unqualified) method. =head2 method invocant Returns the invocant of the failed, qualified method call =head2 method qualifier-type Returns the type by which the method call was qualified. =end pod
You can’t perform that action at this time.