All files / lib/compiler/errors BuildError.js

100% Statements 21/21
100% Branches 2/2
100% Functions 1/1
100% Lines 21/21

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22330x 330x 330x 330x 330x 330x 330x 330x 330x 330x 330x 330x 330x 153x 153x 153x 153x 153x 153x 153x 330x  
import { CompilerError } from './CompilerError.js';
 
/**
 * Specialized error class for build pipeline, directory, and compiler configuration errors.
 * @augments CompilerError
 */
export class BuildError extends CompilerError {
  /**
   * Creates an instance of BuildError.
   * @param {string} code - The build error or warning code.
   * @param {...any} args - Arguments to format within the template message.
   */
  constructor(code, ...args) {
    super(code, ...args);
    /**
     * Custom name identifier for build errors.
     * @type {string}
     */
    this.name = 'BuildError';
  }
}