hunk.code_window: import { moveFile } from '../../utils/fs';
   import { installPackage, uninstallPackage } from '../../utils/packages';
   import { execAndWaitForOutputToMatch, ng } from '../../utils/process';
   import { expectToFail } from '../../utils/utils';
   export default async function () {
  
hunk.labels: keep replace keep keep keep keep
hunk.after_edit: import { getActivePackageManager, installPackage, uninstallPackage } from '../../utils/packages';
  
hunk.file_path: tests/legacy-cli/e2e/tests/commands/builder-not-found.ts
hunk.type: replace
file: /**
   * @license
   * Copyright Google LLC All Rights Reserved.
   *
   * Use of this source code is governed by an MIT-style license that can be
   * found in the LICENSE file at https://angular.io/license
   */
  
  export class BaseException extends Error {
    constructor(message = '') {
      super(message);
    }
  }
  
  export class UnknownException extends BaseException {
    constructor(message: string) {
      super(message);
    }
  }
  
  // Exceptions
  export class FileDoesNotExistException extends BaseException {
    constructor(path: string) {
      super(`Path "${path}" does not exist.`);
    }
  }
  export class FileAlreadyExistException extends BaseException {
    constructor(path: string) {
      super(`Path "${path}" already exist.`);
    }
  }
  export class PathIsDirectoryException extends BaseException {
    constructor(path: string) {
      super(`Path "${path}" is a directory.`);
    }
  }
  export class PathIsFileException extends BaseException {
    constructor(path: string) {
      super(`Path "${path}" is a file.`);
    }
  }
  
  /**
   * @deprecated since version 14. Use the same symbol from `@angular-devkit/schematics`.
   */
  export class ContentHasMutatedException extends BaseException {
    constructor(path: string) {
      super(`Content at path "${path}" has changed between the start and the end of an update.`);
    }
  }
  
  /**
   * @deprecated since version 14. Use the same symbol from `@angular-devkit/schematics`.
   */
  
  export class InvalidUpdateRecordException extends BaseException {
    constructor() {
      super(`Invalid record instance.`);
    }
  }
  
  /**
   * @deprecated since version 14. Use the same symbol from `@angular-devkit/schematics`.
   */
  export class MergeConflictException extends BaseException {
    constructor(path: string) {
      super(`A merge conflicted on path "${path}".`);
    }
  }
  
  /**
   * @deprecated since version 14. Create a custom exception implementation instead.
   */
  export class UnimplementedException extends BaseException {
    constructor() {
      super('This function is unimplemented.');
    }
  }
  
  /**
   * @deprecated since version 14. Create a custom exception implementation instead.
   */
  export class UnsupportedPlatformException extends BaseException {
    constructor() {
      super('This platform is not supported by this code path.');
    }
  }
  