docs: function parseVErrorArgs(ctorArgs) {
      // to array the inner arguments so it's easier to determine which cases
      // we are looking at
      var args = _.toArray(ctorArgs);
      var internalOpts = {};
      var verrorOpts = {};
      var verrorArgs;
  
      if (_.isPlainObject(args[0])) {
          // split restify-errors options from verror options
          _.forOwn(args[0], function(val, key) {
              if (INTERNAL_OPTS_KEYS.hasOwnProperty(key)) {
                  internalOpts[key] = val;
              } else {
                  verrorOpts[key] = val;
              }
          });
  
          // reconstruct verror ctor options from the cleaned up options
          verrorArgs = [ verrorOpts ].concat(_.tail(args));
      } else {
          verrorArgs = args;
      }
  
      return {
          // raw arguments to pass to VError constructor
          verrorArgs: verrorArgs,
          // restify-errors specific options
          internalOpts: internalOpts
      };
  }