From 6cfdbf44cce0b0881d1811e7ec06c4e79e637c96 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 12 Apr 2009 17:06:48 +0000 Subject: Write C++ error handling wrapper. --- libdimensionxx/dimensionxx/error.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libdimensionxx/dimensionxx') diff --git a/libdimensionxx/dimensionxx/error.hpp b/libdimensionxx/dimensionxx/error.hpp index a6a4ca6..072949f 100644 --- a/libdimensionxx/dimensionxx/error.hpp +++ b/libdimensionxx/dimensionxx/error.hpp @@ -25,6 +25,14 @@ namespace Dimension { + enum Severity { + SEVERITY_LOW = DMNSN_SEVERITY_LOW, + SEVERITY_MEDIUM = DMNSN_SEVERITY_MEDIUM, + SEVERITY_HIGH = DMNSN_SEVERITY_HIGH + }; + + Severity resilience(); + void resilience(Severity resilience); } #endif /* DIMENSIONXX_ERROR_HPP */ -- cgit v1.2.3