summaryrefslogtreecommitdiffstats
path: root/include/raul/Exception.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/raul/Exception.hpp')
-rw-r--r--include/raul/Exception.hpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/raul/Exception.hpp b/include/raul/Exception.hpp
index 40a4382..919ece2 100644
--- a/include/raul/Exception.hpp
+++ b/include/raul/Exception.hpp
@@ -23,16 +23,19 @@
namespace Raul {
/** An exception (unexpected error). */
-class Exception : public std::exception {
+class Exception : public std::exception
+{
public:
- // NOLINTNEXTLINE(modernize-use-override, hicpp-use-override)
- const char* what() const noexcept final override { return _what.c_str(); }
+ // NOLINTNEXTLINE(modernize-use-override, hicpp-use-override)
+ const char* what() const noexcept final override { return _what.c_str(); }
protected:
- explicit Exception(std::string what) : _what(std::move(what)) {}
+ explicit Exception(std::string what)
+ : _what(std::move(what))
+ {}
private:
- const std::string _what;
+ const std::string _what;
};
} // namespace Raul