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
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 Merge pull request #1659 from DannyArends/issue_11338 Fix Issue 11338 - std.uri URIerror should be an Exception
auto close failure: https://github.com/D-Programming-Language/phobos/pull/1659