Results 1 to 2 of 2

  Click here to go to the first Developer post in this thread.  

Thread: Exception Handling

  1. #1
    According to the Biki we should have some sort of exception handling with ArmA.

    But all the examples don't really show any situation that couldn't be handled by a bunch of if...then tests.

    If I try to throw a real error though - like this:
    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">try {_a=1/0;} catch {hint &#34;exception caught&#34;;}[/QUOTE] it will still throw a normal exception, and pop an error message on the screen.

    Has this worked for anybody yet?

  2.   This is the last Developer post in this thread.   #2
    BI Developer Suma's Avatar
    Join Date
    Jun 27 2001
    Location
    Czech Republic
    Posts
    3,708
    You need to throw an exception if you want to catch it. No built in operators and functions currently throw any exceptions.
    Ondrej Spanel, BIS Lead Programmer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •