Commit ffb9e0e
Matthias Radestock
drop toString in favour of constructing a "message" for the super class
By setting the message we get better error reporting in apps that call
getMessage() during error reporting rather than toString(). Clojure
appears to be an example of this.
And becasue the super class (RuntimeException) has a sensible
toString method that takes into account the class name and message we
do not our own toString method.1 parent 0e81d5d commit ffb9e0e
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
0 commit comments