docutils-ts
Version:
Port of the Python Docutils library to TypeScript
14 lines (13 loc) • 404 B
JavaScript
export default class UnexpectedIndentationError extends Error {
constructor(block, source, lineno) {
super();
this.block = block;
this.source = source;
this.lineno = lineno;
;
if (Error.captureStackTrace) {
Error.captureStackTrace(this, UnexpectedIndentationError);
}
this.message = `Unexpected indentation error.`;
}
}