Skip to content

JSONPath Tools / @jsonpath-tools/jsonpath / Diagnostics

Class: Diagnostics

Diagnostics related to the query.

Constructors

new Diagnostics()

ts
new Diagnostics(
   severity, 
   message, 
   textRange): Diagnostics

Parameters

severity

DiagnosticsSeverity

Severity.

message

string

Message.

textRange

TextRange

Range in the text of the query to which the diagnostic relates.

Returns

Diagnostics

Properties

message

ts
readonly message: string;

Message.


severity

ts
readonly severity: DiagnosticsSeverity;

Severity.


textRange

ts
readonly textRange: TextRange;

Range in the text of the query to which the diagnostic relates.

Methods

toString()

ts
toString(): string

Converts the diagnostics to a text representation.

Returns

string