Report

interface Report(source)

Reports are messages from a compiler mainly targeted to be shown to the user. A report may be triggered by any reason, e.g. mal-formed/invalid input, a network error, a file system error, a warning about a deprecated feature being used, and so on.

The main idea is that reports are inherited by custom violation classes, that add domain-specific data, if any.

Properties

Link copied to clipboard
abstract val cause: Throwable?

The exception, if any, that caused this report to be generated.

Link copied to clipboard
abstract val level: ReportLevel

The severity level of this report.

Link copied to clipboard
abstract val message: String

The message of this report. Is typically not localized.

Link copied to clipboard
abstract val sourceRange: SourceRange

The source range this report applies to.