Skip to content

Commit fa9885a

Browse files
committed
explain why smartmatching against exception categories work
1 parent 3a88e95 commit fa9885a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/Language/exceptions.pod6

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ To handle all exceptions use a C<default> statement.
6262
}
6363
}
6464
65+
Please note that the match target is a role. To allow user defined exceptions
66+
to match in the same manner, they must implement the given role. Just existing
67+
in the same namespace will look alike but won't match in a C<CATCH> block.
6568
6669
## Exceptions handlers and enclosing blocks.
6770

0 commit comments

Comments
 (0)