26#include "ElementsKernel/Exception.h"
41 if (source_id_index_ptr ==
nullptr) {
42 throw Elements::Exception() <<
"Column info does not have the column " << source_id_column_name;
59 for (
const auto& row : input_table) {
66 attribute_ptr_vector.
begin(),
69 throw Elements::Exception() <<
"Parsing error while parsing the source with Id = " << source_id <<
" : "
70 << parsing_exception.
what();
72 throw Elements::Exception() <<
"Error while parsing the source with Id = " << source_id <<
" : " << e.what();
const char * what() const noexcept override
This type can be used together with boost::apply_visitor to cast boost::variant with an unknown under...
std::vector< std::shared_ptr< AttributeFromRow > > m_attribute_from_row_ptr_vector
CatalogFromTable(std::shared_ptr< Euclid::Table::ColumnInfo > column_info_ptr, const std::string &source_id_column_name, std::vector< std::shared_ptr< AttributeFromRow > > attribute_from_row_ptr_vector)
Euclid::SourceCatalog::Catalog createCatalog(const Euclid::Table::Table &input_table)
virtual ~CatalogFromTable()
Catalog contains a container of sources.
T emplace_back(T... args)