Search the Community
Showing results for tags 'try-catch'.
Found 1 result
-
Hey all, First of all, I want to apologize in advance if this is not the right place to throw this question at. Now, to the question itself. I have recently started doing a wee bit of scripting to implement some utility scripts for me and friends. I have been trying to make them as generic as possible and now I have been at the point that I want to find a way to handle "incorrect" arguments (either wrong type, nonsensical numbers, null objects, etc.). I do have a bit of programming background and having utilized "try, catch, throw" exception facilities of other programming languages before I wanted to check it here too. So far I have seen absolutely no one using them and in the documentation I read that scripting commands in ArmA do not throw exceptions. So, I was wondering if it would be a good idea to use "throws" in my scripts or not, since the majority of the users "never" use try-catch blocks. I would really like to hear opinions on the matter or even "aggressive" statements either against or in support of this specific facility/construct. Hope to hear from you. Have fun, take care and ArmA a lot, Achilles.
- 3 replies
-
- exceptions
- throw
-
(and 1 more)
Tagged with: