www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12145] New: Custom error messages are no longer printed for core.exceptions

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 puremagic.com
        ReportedBy: sean invisibleduck.org



---
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: -------
Feb 12 2014