Permalink
Browse files

(S32/Exceptions) Add X::Range::InvalidArg exception.

  • Loading branch information...
1 parent 8efa3ac commit 2be530687ec3e11c211d1971830b4044b5439128 @pmichaud pmichaud committed Mar 16, 2013
Showing with 11 additions and 0 deletions.
  1. +11 −0 S32-setting-library/Exception.pod
@@ -1045,6 +1045,17 @@ Thrown when an argument to C<Str.trans> is not a C<Pair>.
}
}
+=head2 X::Range::InvalidArg
+
+Thrown when an argument to C<Range.new> is a C<Range>.
+
+ my class X::Range::InvalidArg is Exception {
+ has $.got;
+ method message() {
+ "{$.got.^name} objects are not valid endpoints for Ranges";
+ }
+ }
+
=head2 X::Sequence::Deduction
Exception type when the C<...> sequence operator is being called without an

0 comments on commit 2be5306

Please sign in to comment.