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