docs: function toJSON() {
    var obj =  { message: this.message, stack: this.stack }, key;
  
    for (key in this) {
      if (
           has.call(this, key)
        && 'function' !== typeof this[key]
      ) {
        obj[key] = this[key];
      }
    }
  
    return obj;
  }