AkashBabu/supervised-emitter

View on GitHub
src/errors.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * This error will be thrown when an invalid wildcards sequence
 * is detected
 */
export class InvalidPatternError extends Error {
  constructor() {
    super('DO NOT use **/*, */**, **/** in your event string because it is equivalent to using /**/');

    this.name = this.constructor.name;
  }
}