From 8a4f9e902cf64f97ee2f15fa3940a7cf183a27b7 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 12 Apr 2009 17:06:58 +0000 Subject: Use exceptions to report errors when possible. --- libdimensionxx/error.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libdimensionxx/error.cpp') diff --git a/libdimensionxx/error.cpp b/libdimensionxx/error.cpp index fce453e..948a8c0 100644 --- a/libdimensionxx/error.cpp +++ b/libdimensionxx/error.cpp @@ -19,6 +19,8 @@ *************************************************************************/ #include "dimensionxx.hpp" +#include +#include namespace Dimension { @@ -33,4 +35,7 @@ namespace Dimension { dmnsn_set_resilience(static_cast(resilience)); } + + Dimension_Error::Dimension_Error(const std::string& str) + : std::runtime_error(str) { } } -- cgit v1.2.3