Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(S32/Exceptions) Add X::Range::InvalidArg exception.
  • Loading branch information
pmichaud committed Mar 16, 2013
1 parent 8efa3ac commit 2be5306
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions S32-setting-library/Exception.pod
Expand Up @@ -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
Expand Down

0 comments on commit 2be5306

Please sign in to comment.