Skip to content

Commit

Permalink
[S32::Exception] remove redundant error; harmonize error messages to …
Browse files Browse the repository at this point in the history
…be easier copy&pastable
  • Loading branch information
moritz committed Jun 4, 2012
1 parent 7ceaeb9 commit 54584ca
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions S32-setting-library/Exception.pod
Expand Up @@ -18,7 +18,7 @@ Authors of previous versions of this document:
Created: 26 Feb 2009

Last Modified: 4 June 2012
Version: 11
Version: 12

The document is a draft.

Expand Down Expand Up @@ -526,23 +526,18 @@ Common role for all syntax errors.

=head3 X::Syntax::Obsolete

Thrown when obsolete (mostly Perl 5) syntax is detected.

role X::Syntax::Obsolete does X::Syntax {
has $.old;
has $.replacement; # cannot call it 'new',
# would collide with constructor
has $.when = 'in Perl 6'
}

Message defaults to C<< Unsupported use of $.old; $.when please use $.replacement >>.

=head3 X::Syntax::BadInfix

role X::Syntax::BadInfix does X::Syntax {
has $.bad;
has $.when = 'in Perl 6';
method message() {
"Unsupported use of $.old; $.when please use $.replacement";
}
}

Message defaults to C<< Preceding context expects a term, but found infix $.bad instead >>.


=head3 X::Syntax::Name::Null

Expand Down

0 comments on commit 54584ca

Please sign in to comment.