static makeError_(obj) {
    const contents = obj['contents'];
    const error = new Error(contents['message']);
    for (const key in contents) {
      error[key] = contents[key];
    }
    return error;
  }
Creates an Error object from data sent by the cast receiver.
@param {?} obj
@return {!Error}
@private