[Issue 12145] New: Custom error messages are no longer printed for core.exceptions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 12 14:51:12 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12145
Summary: Custom error messages are no longer printed for
core.exceptions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: druntime
AssignedTo: nobody at puremagic.com
ReportedBy: sean at invisibleduck.org
--- Comment #0 from Sean Kelly <sean at invisibleduck.org> 2014-02-12 14:51:10 PST ---
Exceptions now use a toString(sink) method for formatting instead of the
toString() method inherited from Object. However, the exceptions defined in
core.exception (and possibly exceptions in Phobos as well) were not updated to
use this new method. Many of the exceptions have a toString() method for
custom output, and this is no longer working.
Please change all relevant exceptions to use toString(sink) instead of
toString(). Also, consider removing toString() from Throwable, since its
presence is misleading.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list