If I have this JavaScript:
try {
myJStestexception.throwit("message");
} catch (e) {
console.log("message " + e);
}
How can I throw an exception from iOS foreign code?
If I have this JavaScript:
try {
myJStestexception.throwit("message");
} catch (e) {
console.log("message " + e);
}
How can I throw an exception from iOS foreign code?
If you throw a Fuse.Scripting.Error
in a callback from JavaScript to Uno it should be re-thrown as a JavaScript exception. To achieve this in foreign code, try calling an Uno method that does the throwing. Use something like @{SomeClass.StaticExceptionThrower(string):Call(@"message")}
in the body of the foreign method.