UNPKG

jc-marked

Version:

Markdown AST (Abstract syntax tree) parser based on finite-state machine (FSM).

1 lines 454 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InputTypeError=exports.ValueError=void 0;class _ValueError extends Error{constructor(r){super(r)}}class _InputError extends Error{constructor(r,e){super(`We except a "${r}", but get a value of "${e}".`)}}function ValueError(r){return new _ValueError(r)}function InputTypeError(r,e){return new _InputError(r,e)}exports.ValueError=ValueError,exports.InputTypeError=InputTypeError;