[Issue 11338] New: std.uri URIerror should be an Exception

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 24 02:45:57 PDT 2013


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 at puremagic.com
        ReportedBy: Danny.Arends at gmail.com


--- Comment #0 from Danny Arends <Danny.Arends at gmail.com> 2013-10-24 02:45:55 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: -------


More information about the Digitalmars-d-bugs mailing list