constructor(causeResult, allResults) {
        super(`"${causeResult.task}" exited with ${causeResult.code}.`)

        /**
         * The name of a npm-script which exited with a non-zero code.
         * @type {string}
         */
        this.name = causeResult.name

        /**
         * The code of a npm-script which exited with a non-zero code.
         * This can be `undefined`.
         * @type {number}
         */
        this.code = causeResult.code

        /**
         * All result items of npm-scripts.
         * @type {Array.<{name: string, code: (number|undefined)}>}
         */
        this.results = allResults
    }
Constructor.

@param {{name: string, code: number}} causeResult -
     The result item of the npm-script which causes an error.
@param {Array.<{name: string, code: (number|undefined)}>} allResults -
     All result items of npm-scripts.