www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3678] New: Should disallow throwing of exceptions that are not derived from Exception

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3678

           Summary: Should disallow throwing of exceptions that are not
                    derived from Exception
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bugzilla digitalmars.com



20:09:32 PST ---
In particular, instances of type Object cannot be thrown.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 05 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3678


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com
           Platform|Other                       |All
            Version|unspecified                 |D1
            Summary|Should disallow throwing of |(D1 only) Should disallow
                   |exceptions that are not     |throwing of exceptions that
                   |derived from Exception      |are not derived from
                   |                            |Exception



This has been fixed for quite a while in D2.

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