aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src
diff options
context:
space:
mode:
Diffstat (limited to 'nuldoc-src')
-rw-r--r--nuldoc-src/errors.ts20
1 files changed, 17 insertions, 3 deletions
diff --git a/nuldoc-src/errors.ts b/nuldoc-src/errors.ts
index ab8052f..fa53583 100644
--- a/nuldoc-src/errors.ts
+++ b/nuldoc-src/errors.ts
@@ -1,3 +1,17 @@
-export class DocBookError extends Error {}
-export class SlideError extends Error {}
-export class XmlParseError extends Error {}
+export class DocBookError extends Error {
+ static {
+ this.prototype.name = "DocBookError";
+ }
+}
+
+export class SlideError extends Error {
+ static {
+ this.prototype.name = "SlideError";
+ }
+}
+
+export class XmlParseError extends Error {
+ static {
+ this.prototype.name = "XmlParseError";
+ }
+}