Thread overview
[Issue 5220] New: Make std.conv.ConvError an Exception instead of an Error
Nov 16, 2010
Jonathan M Davis
Nov 16, 2010
Jonathan M Davis
Jan 21, 2012
Jonathan M Davis
November 16, 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@puremagic.com
        ReportedBy: jmdavisProg@gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg@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: -------
November 16, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5220



--- Comment #1 from Jonathan M Davis <jmdavisProg@gmx.com> 2010-11-15 21:07:45 PST ---
As noted by dsimcha on Phobos list, ConvError should be left as a deprecated alias to ConvException for a few releases to mitigate code breakage.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 09, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5220


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei@metalanguage.com
         AssignedTo|nobody@puremagic.com        |andrei@metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5220


Jonathan M Davis <jmdavisProg@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-01-20 23:29:32 PST ---
This was already done a while ago.

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