Skip to main content

CompilerError

export interface CompilerError {
  kind: CompilerErrorKind
  message: string
  name: "CompilerError"
  originalMessage: string
  otherErrors: undefined | CompilerError[]
  site: Site
}
An error thrown by the compiler process. Can be a reference, syntax or type error.

Properties​

kind​

kind: CompilerErrorKind

message​

message: string
Displayed message

name​

name: "CompilerError"

originalMessage​

originalMessage: string
Unformatted message

otherErrors​

otherErrors: undefined | CompilerError[]
When an ErrorCollector has more than 1 error and ErrorCollector.throw is called, the first error is thrown and the remaining are attached to it.

site​

site: Site
Source code location of error