Class: BuildError

BuildError(code, …args)

Specialized error class for build pipeline, directory, and compiler configuration errors.

Constructor

new BuildError(code, …args)

Creates an instance of BuildError.

Parameters:
Name Type Attributes Description
code string

The build error or warning code.

args any <repeatable>

Arguments to format within the template message.

Source:

Extends

Classes

BuildError

Members

code :string

The unique framework error code.

Type:
  • string
Overrides:
Source:

name :string

Custom name identifier for build errors.

Type:
  • string
Overrides:
Source:

Methods

setLocation(loc) → {CompilerError}

Attaches source location information and generates a code frame with carets (^).

Parameters:
Name Type Description
loc object

Location options object containing { line, column, source, filename, index, length }.

Overrides:
Source:
Returns:

Returns this error instance for chaining.

Type
CompilerError