From e5cdb2e8caa99175728f0b4858155dac46878a74 Mon Sep 17 00:00:00 2001
From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com>
Date: Sun, 2 Aug 2020 14:34:09 +0200
Subject: [PATCH] Added error.py file for error handling functions
---
nw/error.py | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 89 insertions(+)
create mode 100644 nw/error.py
diff --git a/nw/error.py b/nw/error.py
new file mode 100644
index 00000000..dd0cb109
--- /dev/null
+++ b/nw/error.py
@@ -0,0 +1,89 @@
+# -*- coding: utf-8 -*-
+"""novelWriter Init
+
+ novelWriter – Exception Handling
+==================================
+ Error handling functions
+
+ File History:
+ Created: 2020-08-02 [0.10.2]
+
+ This file is a part of novelWriter
+ Copyright 2020, Veronica Berglyd Olsen
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see
"
+
+ theMessage = (
+ "
Please report this error by submitting an issue report on " + "GitHub, providing a description and this error message.
" + "Issue Tracker
%s
Error Type
%s: %s
Traceback
%s