Skip to content

달빛약속 / core/mod / ValidationRunModuleResult

Interface: ValidationRunModuleResult

runModule 호출 시 유효성 검사 오류가 발생했을 때의 결과.

typescript
const session = new YaksokSession();
session.addModule('main', `변수 = 1 +`); // 문법 오류
const result = await session.runModule('main');
// result.reason is 'validation'

Extends

Properties

codeFile

codeFile: CodeFile

실행된 코드 파일.

Inherited from

RunModuleResultBase.codeFile

Defined in

core/constant/type.ts:18


errors

errors: ErrorGroups

발생한 유효성 검사 오류 그룹.

Defined in

core/constant/type.ts:89


reason

reason: "validation"

Defined in

core/constant/type.ts:85