UNPKG

docutils-ts

Version:

Port of the Python Docutils library to TypeScript

13 lines (12 loc) 362 B
class UnknownStateError extends Error { // @ts-ignore constructor(state, info) { super(); if (Error.captureStackTrace) { Error.captureStackTrace(this, UnknownStateError); } this.state = state; this.message = `Unknown state ${state}${info ? `: ${info}` : ''}`; } } export default UnknownStateError;