Class: StyleCompilerError

StyleCompilerError(code, …args)

Specialized error class for CSS processing and preprocessor errors or warnings.

Constructor

new StyleCompilerError(code, …args)

Creates an instance of StyleCompilerError.

Parameters:
Name Type Attributes Description
code string

The style compiler error or warning code.

args any <repeatable>

Arguments to format within the template message.

Source:

Extends

Classes

StyleCompilerError

Members

code :string

The unique framework error code.

Type:
  • string
Overrides:
Source:

name :string

Custom name identifier for style compiler 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