.. _program_listing_file_umap_util_Exception.hpp: Program Listing for File Exception.hpp ====================================== |exhale_lsh| :ref:`Return to documentation for file ` (``umap/util/Exception.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp ////////////////////////////////////////////////////////////////////////////// // Copyright 2017-2020 Lawrence Livermore National Security, LLC and other // UMAP Project Developers. See the top-level LICENSE file for details. // // SPDX-License-Identifier: LGPL-2.1-only ////////////////////////////////////////////////////////////////////////////// #ifndef UMAP_Exception_HPP #define UMAP_Exception_HPP #include #include namespace Umap { class Exception : public std::exception { public: Exception(const std::string& msg, const std::string &file, int line); virtual ~Exception() = default; std::string message() const; virtual const char* what() const throw(); private: std::string m_message; std::string m_file; int m_line; std::string m_what; }; } // end of namespace Umap #endif // UMAP_Exception_HPP