Skip to content

ValidateErrorV1

PromptScript API


Defined in: core/src/types/validate-report.ts:26

One error of prs validate.

Properties

cause?

optional cause?: string

Defined in: core/src/types/validate-report.ts:38

Code of the underlying error, when the error wraps another one. A parse error reaches the report as PS2000 with cause set to the parser code, such as PS1000.

Pattern

^PS[0-9]{3,4}$


code?

optional code?: string

Defined in: core/src/types/validate-report.ts:32

Error code, such as PS2000. Absent when the run stops before the compile with an error that has no PS code, for example a missing entry file or a registry clone failure.

Pattern

^PS[0-9]{3,4}$


location?

optional location?: ValidateLocationV1

Defined in: core/src/types/validate-report.ts:42

Where the error is, when the compiler knows


message

message: string

Defined in: core/src/types/validate-report.ts:40

Error message