title: How execute every Javascript function(or functions inside a scope) with in a try catch block using a coding pattern/framework?
body: <p>Sorry for the ambiguous question statement.</p>
  
  <p>Detailed explaination
  The requirement is to execute every javascript function inside try/catch blocks.
  no. of functions = no of try catch blocks.</p>
  
  <p><strong>example</strong></p>
  
  <pre><code>var module = function(){
      try{
          something();
      }catch(e){
          something();
      }
  };
  </code></pre>
  
  <p><strong>Purpose of Try/Catch</strong></p>
  
  <ul>
  <li>To log all the point of failures in the code across all the browsers and devices.</li>
  </ul>
  
  <p><strong>What I have tried</strong></p>
  
  <ul>
  <li>I tried creating a function which will be called using the <code>bind()</code> function so that i can replace the <code>this</code> attribute in the context. Code does not seem to work properly and consistently.</li>
  </ul>
  
  <p>doing so for hundreds of function is not feasible and a good practice. can you please suggest some pattern/framework for achieving the same.</p>