3 Replies Latest reply on May 7, 2013 6:46 AM by Michael L Hale

    How to create Exception

    Andy_Bat1 Level 1

      Hi to All !

      How I'm can create exception &

       

       

       

       

       

      ......
      try{
          .....
          folderAdd(newName);
      }
      catch(e) {
       showError(e);
      }
      
      function folderAdd(newName){
      myFolder = new Folder(newName);
      if (!myFolder.exists) myFolder.create();
          else{
                !!!! in that place I'm whant to create exception !!!!!
          }
      }