aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/error.h b/src/error.h
index 62063ff..6801271 100644
--- a/src/error.h
+++ b/src/error.h
@@ -25,6 +25,7 @@
#include <glib/gprintf.h>
#include "sciteco.h"
+#include "memory.h"
#include "string-utils.h"
namespace SciTECO {
@@ -33,20 +34,20 @@ namespace SciTECO {
* Thrown as exception to signify that program
* should be terminated.
*/
-class Quit {};
+class Quit : public Object {};
/**
* Thrown as exception to cause a macro to
* return or a command-line termination.
*/
-class Return {
+class Return : public Object {
public:
guint args;
Return(guint _args = 0) : args(_args) {}
};
-class Error {
+class Error : public Object {
GSList *frames;
public:
@@ -54,7 +55,7 @@ public:
gint pos;
gint line, column;
- class Frame {
+ class Frame : public Object {
public:
gint pos;
gint line, column;