diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-06-02 16:08:41 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-06-02 16:08:41 +0200 |
commit | 88dc6ac6daea0f0a16c7cf8a1e32d509121ff15c (patch) | |
tree | 7dddb9ef7c8f4efec163e432c4000704d166549a /src/error.h | |
parent | 02d414b3ab447e637fef776e387aa5a07293738a (diff) | |
download | sciteco-88dc6ac6daea0f0a16c7cf8a1e32d509121ff15c.tar.gz |
throw error when trying to set or append the string part of "*" and appending to "$"
* these operations are unsupported and there is no benefit
in ignoring them silently. It only confused the user.
Diffstat (limited to 'src/error.h')
-rw-r--r-- | src/error.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/error.h b/src/error.h index c9cad00..26c98f6 100644 --- a/src/error.h +++ b/src/error.h @@ -193,6 +193,14 @@ public: local ? "." : "", name) {} }; +class QRegOpUnsupportedError : public Error { +public: + QRegOpUnsupportedError(const gchar *name, bool local = false) + : Error("Operation unsupported on " + "Q-Register \"%s%s\"", + local ? "." : "", name) {} +}; + } /* namespace SciTECO */ #endif |