Bug 12145 – Custom error messages are no longer printed for core.exceptions

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-12T14:51:10Z
Last change time
2024-12-07T13:33:27Z
Assigned to
No Owner
Creator
Sean Kelly
Moved to GitHub: dmd#17269 →

Comments

Comment #0 by sean — 2014-02-12T14:51:10Z
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.
Comment #1 by robert.schadek — 2024-12-07T13:33:27Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17269 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB