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. |
Extends
Classes
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