export class CodeGeneratorError extends Error {
  constructor(message: string) {
    super(message);
    this.name = this.constructor.name;
  }
}

// tslint:disable-next-line: max-classes-per-file
export class ComponentValidationError extends CodeGeneratorError {
  constructor(errorString: string) {
    super(errorString);
  }
}

// tslint:disable-next-line: max-classes-per-file
export class CompatibilityError extends CodeGeneratorError {
  constructor(errorString: string) {
    super(errorString);
  }
}
