0 Replies Latest reply on Jan 13, 2020 6:22 AM by Akshar Jamgaonkar

    otherwise callback not getting executed

    Akshar Jamgaonkar

      Hi All,

       

      I am trying to handle a exception "Duplicate key 'OperatorTypeParameter'", however, my otherwise callback does not get executed, I also tried to add a try / catch but even in that case it does not work.

       

      try {
        workbook.getParametersAsync().then(function(parameter) {}).otherwise(function(err) {
          try {
            console.log(err);
          } catch(e) {
            console.log(e)
          }
        });
      } catch(e) {
        console.log(e)
      }
      

       

      Not sure it its a bug. Any help in this would be really great.

       

      Thanks.