Skip to content
This repository
Browse code

[S32::Exception] better error message for X::Numeric::Real

also fix a typo
  • Loading branch information...
commit 277460624db9b6231b242c82c3ed9f513ab2e8d8 1 parent 5e47a16
Moritz Lenz authored August 23, 2012

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. 9  S32-setting-library/Exception.pod
9  S32-setting-library/Exception.pod
Source Rendered
@@ -17,8 +17,8 @@ Authors of previous versions of this document:
17 17
 
18 18
     Created: 26 Feb 2009
19 19
 
20  
-    Last Modified: 22 August 2012
21  
-    Version: 22
  20
+    Last Modified: 23 August 2012
  21
+    Version: 23
22 22
 
23 23
 The document is a draft.
24 24
 
@@ -968,7 +968,7 @@ Thrown when hash assignment finds a trailing hash key with a value.
968 968
         method message() { "Odd number of elements found where hash expected" }
969 969
     }
970 970
 
971  
-=head2 X::Phaser::PrePos
  971
+=head2 X::Phaser::PrePost
972 972
 
973 973
 Thrown when the condition inside a C<PRE> or C<POST> phaser evaluate to a
974 974
 false value.
@@ -1251,11 +1251,12 @@ Occurs when an attempt to coerce a C<Numeric> to a C<Real>, C<Num>, C<Int> or
1251 1251
 C<Rat> fails (due to a number with a nonzero imaginary part, for instance).
1252 1252
 
1253 1253
     my class X::Numeric::Real is Exception {
  1254
+        has $.source;
1254 1255
         has $.target;
1255 1256
         has $.reason;
1256 1257
 
1257 1258
         method message() {
1258  
-            "Can not convert Numeric to {$.target.^name}: $.reason";
  1259
+            "Can not convert $.source to {$.target.^name}: $.reason";
1259 1260
         }
1260 1261
     }
1261 1262
 

0 notes on commit 2774606

Please sign in to comment.
Something went wrong with that request. Please try again.