Skip to content

CommonError

Error describes an issue associated with a source location and expression id.

new CommonError(location, message, exprId?): Error

Location

Location reports where the error occurred.

string

Message is the human-readable error.

number = 0

ExprId is the related expression id when available.

Error

readonly exprId: number = 0

ExprId is the related expression id when available.


readonly location: Location

Location reports where the error occurred.


readonly message: string

Message is the human-readable error.

toDisplayString(source): string

ToDisplayString decorates the error message with source location context.

Source

string