From 85bc0ad0263318c010a5fa2f57c8b5d3c358a089 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Thu, 24 Mar 2011 20:30:11 +0000 Subject: Implementation d'un "framework" d'exceptions, c.f. `exceptions.h'. --- src/test/Vector3DTest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/Vector3DTest.cc') diff --git a/src/test/Vector3DTest.cc b/src/test/Vector3DTest.cc index 6fbd025..d494766 100644 --- a/src/test/Vector3DTest.cc +++ b/src/test/Vector3DTest.cc @@ -9,6 +9,7 @@ #include #include #include +#include "exceptions.h" #include "Vector3D.h" using namespace std; @@ -34,7 +35,7 @@ int main() { bool caught = false; try { ~Vector3D::Null; - } catch (domain_error& ex) { + } catch (UnsupportedOperationException& ex) { caught = true; }; assert(caught == true); -- cgit v1.2.3