Home Manual Reference Source

src/error/UnexpectedEndOfFileError.js

import SyntaxError from './SyntaxError.js';

export default class UnexpectedEndOfFileError extends SyntaxError {
	constructor(expected) {
		super(
			`Syntax error because of unexpected end of file, expected one of ${JSON.stringify(
				expected,
			)}.`,
		);
	}
}