this.registerMatcher(
            (error === null) !== this.shouldMatch,
            `Expected an error ` +
            `${this.shouldMatch ? "" : "not "}to be thrown ` +
            `but ${this.shouldMatch ? "no errors were" : "an error was"} thrown.`,