UNPKG

eliza-core

Version:

A rendition of ELIZA program engine by Weizenbaum sharable for all javascript environments

11 lines (10 loc) 324 B
import { ScriptInterpretingError } from './base-error'; const message = { key: 'key', reassembly: 'a reassembly rule', }; export class UnexpectedNumberException extends ScriptInterpretingError { constructor(problemStr, ruleType) { super(`Number is wrong in ${message[ruleType]}: ${problemStr}`); } }