[vala/wip/valadate: 174/177] Rename ConfigError to TestConfigError



commit c1b6103a897f9c834e17a64983fba37ed21707bd
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Sep 26 20:04:14 2016 +0200

    Rename ConfigError to TestConfigError

 valadate/testconfig.vala   |    6 +++---
 valadate/testexplorer.vala |    8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/valadate/testconfig.vala b/valadate/testconfig.vala
index 2b31b85..2a32523 100644
--- a/valadate/testconfig.vala
+++ b/valadate/testconfig.vala
@@ -26,7 +26,7 @@ namespace Valadate {
        }
 }
 
-public errordomain Valadate.ConfigError {
+public errordomain Valadate.TestConfigError {
        MODULE,
        TESTPLAN
 }
@@ -134,7 +134,7 @@ public class Valadate.TestConfig : Object {
                
                try {
                        load(binary);
-               } catch (ConfigError e) {
+               } catch (TestConfigError e) {
                        stdout.printf ("%s\n", e.message);
                        return 1;
                }
@@ -142,7 +142,7 @@ public class Valadate.TestConfig : Object {
                return -1;
        }
 
-       private void load(string binary) throws ConfigError {
+       private void load(string binary) throws TestConfigError {
                var testexplorer = new TestExplorer(binary, root);
                testexplorer.load();
        }
diff --git a/valadate/testexplorer.vala b/valadate/testexplorer.vala
index 7c12b9c..d73fae3 100644
--- a/valadate/testexplorer.vala
+++ b/valadate/testexplorer.vala
@@ -37,7 +37,7 @@ internal class Valadate.TestExplorer : Vala.CodeVisitor {
                this.running = Valadate.get_current_test_path ();
        }
 
-       public void load () throws ConfigError {
+       public void load () throws TestConfigError {
                string testdir = Path.get_dirname (binary).replace (".libs", "");
 
                string testplan = Path.get_basename (binary);
@@ -47,18 +47,18 @@ internal class Valadate.TestExplorer : Vala.CodeVisitor {
                string testplanfile = testdir + GLib.Path.DIR_SEPARATOR_S + testplan + ".vapi";
                
                if (!FileUtils.test (testplanfile, FileTest.EXISTS))
-                       throw new ConfigError.TESTPLAN ("Test Plan %s Not Found!", testplanfile);
+                       throw new TestConfigError.TESTPLAN ("Test Plan %s Not Found!", testplanfile);
 
                try {
                        module = new TestModule (binary);
                        module.load_module ();
                        load_test_plan (testplanfile);
                } catch (TestModuleError e) {
-                       throw new ConfigError.MODULE (e.message);
+                       throw new TestConfigError.MODULE (e.message);
                }
        }
 
-       internal void load_test_plan (string path) throws ConfigError {
+       internal void load_test_plan (string path) throws TestConfigError {
                setup_context ();
                context.add_source_file (new Vala.SourceFile (context, Vala.SourceFileType.PACKAGE, path));
                var parser = new Vala.Parser ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]