UNPKG
docutils-ts
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Port of the Python Docutils library to TypeScript
github.com/boltex/docutils-ts
boltex/docutils-ts
docutils-ts
/
dist
/
src
/
error
/
duplicateStateError.js
12 lines
(11 loc)
•
332 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
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
;