Skip to content

Commit 7c7b472

Browse files
committed
X::Method::NotFound
1 parent c145248 commit 7c7b472

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

lib/X/Method/NotFound.pod

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
=begin pod
2+
3+
=TITLE X::Method::NotFound
4+
5+
class X::Method::NotFound is Exception
6+
7+
Thrown when the user tries to call a method that isn't there.
8+
9+
For example C<1.nosuch> dies with
10+
11+
No such method 'nosuch' for invocant of type 'Int'
12+
13+
=head1 Methods
14+
15+
=head2 method
16+
17+
method method() returns Str:D
18+
19+
Returns the method name that was invoked.
20+
21+
=head2 typename
22+
23+
method typename returns Str:D
24+
25+
Returns the name of the invocant type.
26+
27+
=head2 private
28+
29+
method private returns Bool:D
30+
31+
Returns C<True> for private methods, and C<False> for public methods.
32+
33+
=end pod

0 commit comments

Comments
 (0)