diff options
Diffstat (limited to 'libdimensionxx/error.cpp')
-rw-r--r-- | libdimensionxx/error.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdimensionxx/error.cpp b/libdimensionxx/error.cpp index 948a8c0..3d7dfa0 100644 --- a/libdimensionxx/error.cpp +++ b/libdimensionxx/error.cpp @@ -24,18 +24,21 @@ namespace Dimension { + // Get the resilience, thread-safely, with dmnsn_get_resilience(). Severity resilience() { return static_cast<Severity>(dmnsn_get_resilience()); } + // Set the resilience, thread-safely, with dmnsn_set_resilience(). void resilience(Severity resilience) { dmnsn_set_resilience(static_cast<dmnsn_severity>(resilience)); } + // Dimension_Error constructor Dimension_Error::Dimension_Error(const std::string& str) : std::runtime_error(str) { } } |