title: How to get the caller object name in the catch block
body: <p>i'm trying to get the object name of a method in the catch block. i want to log the hierarchy of the objects that contain exception.</p>
  
  <pre><code>var facades = function() {
      return {
              facade1: {
                  method1: function() {
                      throw new Error('this is a fake exception');
                  }
              }
          }
  
  }();
  
  try {
      facades.facade1.method1()
  } catch(e) {
      //i want to log facades and facade1 here
  }
  </code></pre>
  
  <p>how can i log the "facades" and "facade1" strings?
  (or how should i change my structure to do this)</p>