code: function(ex, options) {
          // If not an Error is passed through, recall as a message instead
          if (!(ex instanceof Error)) return Opbeat.captureMessage(ex, options);
  
          // Store the raw exception object for potential debugging and introspection
          lastCapturedException = ex;
  
          // TraceKit.report will re-raise any exception passed to it,
          // which means you have to wrap it in try/catch. Instead, we
          // can wrap it here and only re-raise if TraceKit.report
          // raises an exception different from the one we asked to
          // report on.
          try {
              TraceKit.report(ex, options);
          } catch(ex1) {
              if(ex !== ex1) {
                  throw ex1;
              }
          }
  
          return Opbeat;
      }
docs: /*
  Manually capture an exception and send it over to Opbeat.com
  
  @param {error} ex An exception to be logged
  @param {object} options A specific set of options for this error [optional]
  @return {Opbeat}