Appearance
| 1 | namespace Logging is | |
| 2 | /// Thrown when a built-in type the compiler needs is declared nowhere it | |
| 3 | /// looks: the runtime or core library the project references is missing, | |
| 4 | /// or does not match the compiler. Nothing can be analysed without it, so | |
| 5 | /// it is reported as an error rather than as an internal failure. | |
| 6 | @suppress("non-upper-snake-case-name") | |
| 7 | class MissingBuiltInException: System.Exception is | |
| 8 | /// The code of the error that reports the failure. | |
| 9 | CODE: string static => "missing-built-in" | |
| 10 | ||
| 11 | /// The name of the built-in type that was not found. | |
| 12 | name: string | |
| 13 | ||
| 14 | /// A failure to find the built-in type `name`. | |
| 15 | /// | |
| 16 | /// - name: the name of the built-in type | |
| 17 | init(name: string) is | |
| 18 | super.init("built-in type {name} is not declared by the runtime or core library this project references") | |
| 19 | ||
| 20 | self.name = name | |
| 21 | si | |
| 22 | si | |
| 23 | si |