CommonError
Error describes an issue associated with a source location and expression id.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CommonError(
location,message,exprId?):Error
Parameters
Section titled “Parameters”location
Section titled “location”Location reports where the error occurred.
message
Section titled “message”string
Message is the human-readable error.
exprId?
Section titled “exprId?”number = 0
ExprId is the related expression id when available.
Returns
Section titled “Returns”Error
Properties
Section titled “Properties”exprId
Section titled “exprId”
readonlyexprId:number=0
ExprId is the related expression id when available.
location
Section titled “location”
readonlylocation:Location
Location reports where the error occurred.
message
Section titled “message”
readonlymessage:string
Message is the human-readable error.
Methods
Section titled “Methods”toDisplayString()
Section titled “toDisplayString()”toDisplayString(
source):string
ToDisplayString decorates the error message with source location context.
Parameters
Section titled “Parameters”source
Section titled “source”Returns
Section titled “Returns”string