help

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 20 03:19:50 PST 2014


On 11/20/2014 3:38 PM, michael via Digitalmars-d-learn wrote:
> Hello All:
> when i am using std.net.curl to download a file that dosent exist on ftp
> sever,my code
> will get an execption like this
> " ‍std.net.curl.CurlException at std\net\curl.d(3605
> <mailto:‍std.net.curl.CurlException at std\net\curl.d(3605>): Remote file
> not found on handle
>   1A8E038
> ----------------
> 0x0042EC05
> 0x004027F6"
> and then it exits,however what i want when it occers is that my
> code shows an error message  like
> "please check the url you typed blablabla" not the one above,can anyone
> give a hand on me ?
>                                                                                                                              thanks a lot.
>                                                                                                                                      Michael.
>
try {
     // call curl
} catch( CurlException ) {
     // print error message
}


More information about the Digitalmars-d-learn mailing list