code: function AddonFormatError(msg) {
    Error.call(this);
  
    Error.captureStackTrace(this, AddonFormatError);
  
    /** @override */
    this.name = AddonFormatError.name;
  
    /** @override */
    this.message = msg;
  }
docs: Thrown when there an add-on is malformed.
  @param {string} msg The error message.
  @constructor
  @extends {Error}