aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h
index f7c9bed..8e73d64 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -156,6 +156,12 @@ public:
void display_full(void);
};
+ class GError : public Error {
+ public:
+ GError(const ::GError *gerror)
+ : Error("%s", gerror->message) {}
+ };
+
class SyntaxError : public Error {
public:
SyntaxError(gchar chr)