Skip to content

Commit 2dc3ff6

Browse files
committed
X::Method::InvalidQualifier
1 parent 19996f3 commit 2dc3ff6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

lib/X/Method/InvalidQualifier.pod

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
=begin pod
2+
3+
=TITLE class X::Method::InvalidQualifier
4+
5+
class X::Method::InvalidQualifier is Exception { }
6+
7+
Thrown when a method is call in the form C<$invocant.TheClass::method> if
8+
<$invocant> does not conform to C<TheClass>.
9+
10+
For example
11+
12+
1.Str::split(/a/)
13+
14+
dies with
15+
16+
dispatch to method split on Str because it is not inherited or done by Int
17+
18+
=head1 Methods
19+
20+
=head2 method
21+
22+
method method() returns Str:D
23+
24+
Returns the name of the (unqualified) method.
25+
26+
=head2 invocant
27+
28+
Returns the invocant of the failed, qualified method call
29+
30+
=head2 qualifier-type
31+
32+
Returns the type by which the method call was qualified.
33+
34+
=end pod

0 commit comments

Comments
 (0)