rune-langium / codegen/src / GeneratorError
Class: GeneratorError
Defined in: packages/codegen/src/types.ts:115
Thrown when strict mode is enabled and any error diagnostic is produced. FR-022.
Extends
Error
Constructors
Constructor
ts
new GeneratorError(message, diagnostics): GeneratorError;Defined in: packages/codegen/src/types.ts:119
Parameters
| Parameter | Type |
|---|---|
message | string |
diagnostics | GeneratorDiagnostic[] |
Returns
GeneratorError
Overrides
ts
Error.constructorProperties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
cause? | public | unknown | - | Error.cause | node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:24 |
diagnostics | readonly | GeneratorDiagnostic[] | The diagnostics that caused this error. | - | packages/codegen/src/types.ts:117 |
message | public | string | - | Error.message | node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1075 |
name | public | string | - | Error.name | node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1074 |
stack? | public | string | - | Error.stack | node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1076 |