firefox/extension.js
function AddonFormatError(msg) {
  Error.call(this);

  Error.captureStackTrace(this, AddonFormatError);

  /** @override */
  this.name = AddonFormatError.name;

  /** @override */
  this.message = msg;
}
function AddonFormatError(msg) {
  Error.call(this);

  Error.captureStackTrace(this, AddonFormatError);

  /** @override */
  this.name = AddonFormatError.name;

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