Sha256: 7df8d3a2ea936d4570a954e5102e90aeb5c648eedafffd75f33ff7d3450f8874
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
// Copyright Joakim Karlsson & Kim Gräsman 2010-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef IGLOO_ASSERTIONEXCEPTION_H #define IGLOO_ASSERTIONEXCEPTION_H namespace snowhouse { class AssertionException : public std::exception { public: AssertionException(const std::string& message) : m_message(message), m_fileName(""), m_line(0) {} AssertionException(const std::string& message, const std::string& fileName, unsigned int line) : m_message(message), m_fileName(fileName), m_line(line) {} #if __cplusplus > 199711L AssertionException(const AssertionException&) = default; #endif #if __cplusplus > 199711L virtual ~AssertionException() noexcept { } #else virtual ~AssertionException() throw() { } #endif std::string GetMessage() const { return m_message; } std::string GetFilename() const { return m_fileName; } unsigned int GetLineNumber() const { return m_line; } private: std::string m_message; std::string m_fileName; unsigned int m_line; }; } #endif // IGLOO_ASSERTIONEXCEPTION_H
Version data entries
2 entries across 2 versions & 1 rubygems