Program Listing for File exception.hpp

Return to documentation for file (SeQuant/core/utility/exception.hpp)

//
// Created by Eduard Valeyev on 10/16/25.
//

#ifndef SEQUANT_CORE_UTILITY_EXCEPTION_HPP
#define SEQUANT_CORE_UTILITY_EXCEPTION_HPP

#include <string>

namespace sequant {

class Exception {
 public:
  Exception(const std::string& str) : msg_(str) {}
  const auto& what() const { return msg_; }

 private:
  std::string msg_;
};  // class Exception

}  // namespace sequant

#endif  // SEQUANT_CORE_UTILITY_EXCEPTION_HPP