import AnalyzeError from 'typhonjs-escomplex-commons/src/analyze/AnalyzeError.js'
AnalyzeError
Provides a wrapper for analysis errors stored in the errors
array for each report type.
Static Method Summary
Static Public Methods | ||
public static |
parse(object: object): AnalyzeError Deserializes a JSON object representing a AnalyzeError. |
Constructor Summary
Public Constructor | ||
public |
constructor(severity: string, message: string, sourceReport: ClassMethodReport | ClassReport | ModuleMethodReport | ModuleReport | ProjectReport) Initializes an instance. |
Member Summary
Public Members | ||
public |
Provides the line number where the error starts. |
|
public |
Provides the line number where the error starts. |
|
public |
Provides the error message. |
|
public |
name: * Attempt to find the |
|
public |
Provides the severity level. |
|
public |
Provides a type of report where the error is found. |
Static Public Methods
public static parse(object: object): AnalyzeError source
Deserializes a JSON object representing a AnalyzeError.
Params:
Name | Type | Attribute | Description |
object | object | A JSON object of a AnalyzeError that was previously serialized. |
Public Constructors
public constructor(severity: string, message: string, sourceReport: ClassMethodReport | ClassReport | ModuleMethodReport | ModuleReport | ProjectReport) source
Initializes an instance.
Params:
Name | Type | Attribute | Description |
severity | string | Provides the severity level. |
|
message | string | Provides the error message. |
|
sourceReport | ClassMethodReport | ClassReport | ModuleMethodReport | ModuleReport | ProjectReport | The source report of the error. |