UNPKG

@angular/cli

Version:
32 lines (31 loc) 1.16 kB
/** * @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.dev/license */ /** * @fileoverview This file defines a custom error class for the package manager * abstraction. This allows for structured error handling and provides consumers * with detailed information about the process failure. */ /** * A custom error class for package manager-related errors. * * This error class provides structured data about the failed process, * including stdout, stderr, and the exit code. */ export declare class PackageManagerError extends Error { readonly stdout: string; readonly stderr: string; readonly exitCode: number | null; /** * Creates a new `PackageManagerError` instance. * @param message The error message. * @param stdout The standard output of the failed process. * @param stderr The standard error of the failed process. * @param exitCode The exit code of the failed process. */ constructor(message: string, stdout: string, stderr: string, exitCode: number | null); }