summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2019-12-14 12:31:39 +0100
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2019-12-14 12:31:39 +0100
commit2f4a122fa05e9e6514f62112d75d1ee7e4d894f2 (patch)
treedf45a9a00fa204b7a09a3189b16600bd87c7bfc1 /tests
parent729b1ae95d5d05b78741eeef1d635f95b19d790b (diff)
downloadglibmm-2f4a122fa05e9e6514f62112d75d1ee7e4d894f2.tar.gz
Derive Glib::Error from std::exception, remove Glib::Exception
Glib::Error::what() returns const char* (was Glib::ustring). It overrides std::exception::what() that returns const char* and is noexcept. Fixes #23
Diffstat (limited to 'tests')
-rw-r--r--tests/giomm_ioerror/main.cc4
-rw-r--r--tests/giomm_memoryinputstream/main.cc2
-rw-r--r--tests/giomm_simple/main.cc2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/giomm_ioerror/main.cc b/tests/giomm_ioerror/main.cc
index 8aaa4298..de312f8a 100644
--- a/tests/giomm_ioerror/main.cc
+++ b/tests/giomm_ioerror/main.cc
@@ -73,9 +73,9 @@ main(int, char**)
else
std::cerr << "Gio::Error exception caught: " << ex.what() << std::endl;
}
- catch (const Glib::Exception& ex)
+ catch (const Glib::Error& ex)
{
- std::cerr << "Exception caught: " << ex.what() << std::endl;
+ std::cerr << "Glib::Error exception caught: " << ex.what() << std::endl;
return EXIT_FAILURE;
}
diff --git a/tests/giomm_memoryinputstream/main.cc b/tests/giomm_memoryinputstream/main.cc
index ce1b54ec..cbf682fb 100644
--- a/tests/giomm_memoryinputstream/main.cc
+++ b/tests/giomm_memoryinputstream/main.cc
@@ -77,7 +77,7 @@ main(int, char**)
return EXIT_FAILURE;
}
}
- catch (const Glib::Exception& ex)
+ catch (const Glib::Error& ex)
{
std::cerr << "Exception caught: " << ex.what() << std::endl;
return EXIT_FAILURE;
diff --git a/tests/giomm_simple/main.cc b/tests/giomm_simple/main.cc
index 7b1e8767..0a73cb51 100644
--- a/tests/giomm_simple/main.cc
+++ b/tests/giomm_simple/main.cc
@@ -49,7 +49,7 @@ main(int, char**)
return EXIT_FAILURE;
}
}
- catch (const Glib::Exception& ex)
+ catch (const Glib::Error& ex)
{
std::cerr << "Exception caught: " << ex.what() << std::endl;
return EXIT_FAILURE;