diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-11 15:09:21 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-11 15:09:21 +0100 |
commit | 4048ee8150cad5253fd6f0245c9a357484eac3f2 (patch) | |
tree | 2434df63c0766d6c2f8f8294af9104697f4abae2 /src/spawn.cpp | |
parent | 7206f6d1249da0dd8e879d0c0b26185fc6ef89d9 (diff) | |
download | sciteco-4048ee8150cad5253fd6f0245c9a357484eac3f2.tar.gz |
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
Diffstat (limited to 'src/spawn.cpp')
-rw-r--r-- | src/spawn.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/spawn.cpp b/src/spawn.cpp index fa199c6..9e8f620 100644 --- a/src/spawn.cpp +++ b/src/spawn.cpp @@ -28,6 +28,7 @@ #include "qregisters.h" #include "ring.h" #include "parser.h" +#include "error.h" #include "spawn.h" namespace SciTECO { @@ -350,7 +351,7 @@ StateExecuteCommand::done(const gchar *str) goto gerror; if (interface.is_interrupted()) - throw State::Error("Interrupted"); + throw Error("Interrupted"); if (eval_colon()) expressions.push(SUCCESS); @@ -360,7 +361,7 @@ StateExecuteCommand::done(const gchar *str) gerror: if (!eval_colon()) - throw GError(ctx.error); + throw GlibError(ctx.error); /* * If possible, encode process exit code |