Hello,
I want to catch system exceptions to do something like this:
Code (CSharp):
- try
- {
- SaveData(data);
- }
- catch(System.IO.IOException)
- {
- DisplayMessage(“The file is open elsewhere or there is not enough storage space”);
- }
- catch(System.Security.SecurityException)
- {
- DisplayMessage(“Could not save as you do not have the required permissions”);
- }
…
Basically I need to catch these 4 exceptions:
System.IO.IOException
System.Security.SecurityException
System.FormatException
System.ArgumentException
I added System Exception in the nodes in Project Settings, but I cannot find these exceptions. Also, I am not sure how to use the Try&Catch node.
Thanks