UNPKG

docutils-ts

Version:

Port of the Python Docutils library to TypeScript

12 lines (11 loc) 332 B
class DuplicateStateError extends Error { constructor(stateName) { super(); if (Error.captureStackTrace) { Error.captureStackTrace(this, DuplicateStateError); } this.state = stateName; this.message = `Duplicate state ${stateName}`; } } export default DuplicateStateError;