Class CompileError

Represents an errors that can be emitted by the compiler.

Hierarchy

  • Error
    • CompileError

Constructors

  • Creates a new CompileError.

    Parameters

    • message: string

      human-readable description of the error.

    • diagnostics: Diagnostic[]

      represent a list of diagnostic items emitted while compiling .slint code.

    Returns CompileError

Properties

cause?: unknown
diagnostics: Diagnostic[]

List of Diagnostic items emitted while compiling .slint code.

message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void