From 4048ee8150cad5253fd6f0245c9a357484eac3f2 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 11 Nov 2014 15:09:21 +0100 Subject: refactored SciTECO runtime errors: moved from parser.cpp to error.cpp * the GError expection has been renamed to GlibError, to avoid nameclashes when working from the SciTECO namespace --- src/ring.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ring.cpp') diff --git a/src/ring.cpp b/src/ring.cpp index 19b494f..f7dc3bf 100644 --- a/src/ring.cpp +++ b/src/ring.cpp @@ -38,6 +38,7 @@ #include "parser.h" #include "expressions.h" #include "ring.h" +#include "error.h" #ifdef HAVE_WINDOWS_H /* here it shouldn't cause conflicts with other headers */ @@ -134,7 +135,7 @@ Buffer::load(const gchar *filename) GError *gerror = NULL; if (!g_file_get_contents(filename, &contents, &size, &gerror)) - throw State::GError(gerror); + throw GlibError(gerror); edit(); -- cgit v1.2.3