Hi,
I am using the code to handle swift exception but unfortunately its not woking.
Here is the code i am trying.
var array = [String] ();
SwiftTryCatch.try({
var val = array[40]
}, catch: { (error) in
// code to handle exception
print("in catch")
}, finallyRun: {
// code to do any way
print("in finally")
})
Its just crashing on line var val = array[40] and not catch the exception in catch clause
Can anyone help me please?