do{
let doc=try PTPDFDoc(filepath: url)
}catch{
}
No calls to throwing functions occur within 'try' expression
do
{
try PTPDFNet.catchException {
// code that may throw an exception
doc = PTPDFDoc(filepath: docPath!)
}
}
catch
{
print("Caught exception")
}