[Issue 5220] New: Make std.conv.ConvError an Exception instead of an Error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 15 21:06:10 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5220

           Summary: Make std.conv.ConvError an Exception instead of an
                    Error
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: jmdavisProg at gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2010-11-15 21:04:58 PST ---
std.conv.ConvError is an Error which makes it so that you can't catch it
(unless you're willing to catch Errors, which you're not supposed to do). It
should be an Exception so that it can be caught and handled in cases of failure
rather than taking the whole program down with it just because to!() failed.
Presumably, it should be renamed to ConvException as well.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list