digitalmars.D.bugs - [Issue 11338] New: std.uri URIerror should be an Exception
- d-bugmail puremagic.com (25/25) Oct 24 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11338
- d-bugmail puremagic.com (24/24) Nov 01 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11338
http://d.puremagic.com/issues/show_bug.cgi?id=11338 Summary: std.uri URIerror should be an Exception Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: trivial Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: Danny.Arends gmail.com PDT --- I'd like to be able to use the following code import std.uri; string req_uri; try{ req_uri = decode(unsafeUserString); }catch(Exception e){ req_uri = "/"; } Currently it throws an Error... an error (Non-recoverable) is a bit harsh IMHO -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 24 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11338 Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/1fd19c2366e3d1f41ddff5adc3d73820faf56ad4 Fix of Issue 11338 - URIerror renamed to URIexception - URIexception class inherits from Exception https://github.com/D-Programming-Language/phobos/commit/fa0627b21854a3d7be461da20632e474d07c4b66 Fix Issue 11338 - Now call the onOutOfMemoryError() function when alloca returns NULL - Fixed the URIexception name to URIException - Added a string constructor for the URIException class - Added more informative messages to some of the errors https://github.com/D-Programming-Language/phobos/commit/74d59dd7db418126f323586bcc9a09ca6b69b69a Fixing Issue 11338 - Additional - Now all thrown URIException have human readable text - throw new OutOfMemoryError("Alloca Failure"); // Make code look more consistant https://github.com/D-Programming-Language/phobos/commit/42eec50ffe2f315dfb8caac3b8c110058115b880 Fix Issue 11338 - std.uri URIerror should be an Exception -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 01 2013