Forum Discussion

n_v_isaev's avatar
n_v_isaev
Occasional Contributor
12 years ago
Solved

Exclusion from another unit

I use the TC 9 and Jscript   I need to catch exceptions when creating objects "Stop on exceptions" and "Error dialog" in my project settings is disabled Example: Unit1: fun...
  • bbi's avatar
    12 years ago
    In my TC (9.1) your code works well, i have the exception caught in test2.



    I've adapted the Class1 like that:

    function Class1()

    {

      try {

        throw new Error('error');

      }

     

      finally {

      }

    }