TemplateException class
LG Exception that contains diagnostics.
- Extends
-
Error
Constructors
Template |
Creates a new instance of the TemplateException class. |
Properties
Error |
Inherited Properties
message | |
name | |
stack |
Methods
get |
Diagnostics. |
Constructor Details
TemplateException(string, Diagnostic[])
Creates a new instance of the TemplateException class.
new TemplateException(m: string, diagnostics: Diagnostic[])
Parameters
- m
-
string
Error message.
- diagnostics
List of Diagnostic to throw.
Property Details
Error
static Error: ErrorConstructor
Property Value
ErrorConstructor
Inherited Property Details
message
message: string
Property Value
string
Inherited From Error.message
name
name: string
Property Value
string
Inherited From Error.name
stack
stack?: string
Property Value
string
Inherited From Error.stack
Method Details
getDiagnostic()
Diagnostics.
function getDiagnostic(): Diagnostic[]
Returns
A diagnostic of the error or warning (range, message, severity, source, code).