Sha256: a0c64421ac2f322831818dc0069cb50b119f7310fc02f1b98464cb6a9b88e707

Contents?: true

Size: 764 Bytes

Versions: 2

Compression:

Stored size: 764 Bytes

Contents

export class WhitespacePluginError extends Error {
    __proto__ = Error;
    messageTemplate = 'whitespace-found';
    messageData = {};
    constructor(pluginName, data = {}) {
        super(`Whitespace found in plugin name '${pluginName}'`);
        this.messageData = data;
        Object.setPrototypeOf(this, WhitespacePluginError.prototype);
    }
}
export class MissingPluginError extends Error {
    __proto__ = Error;
    messageTemplate = 'plugin-missing';
    messageData;
    constructor(pluginName, errorMessage = '', data = {}) {
        super(`Failed to load plugin ${pluginName}: ${errorMessage}`);
        this.messageData = data;
        Object.setPrototypeOf(this, MissingPluginError.prototype);
    }
}
//# sourceMappingURL=plugin-errors.js.map

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pcp-server-ruby-sdk-0.0.6 node_modules/@commitlint/load/lib/utils/plugin-errors.js
pcp-server-ruby-sdk-0.1.0 node_modules/@commitlint/load/lib/utils/plugin-errors.js