OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
foreign_storage::anonymous_namespace{RegexParserDataWrapper.cpp} Namespace Reference

Functions

void validate_regex (const std::string &regex, const std::string &option_name)
 

Function Documentation

void foreign_storage::anonymous_namespace{RegexParserDataWrapper.cpp}::validate_regex ( const std::string &  regex,
const std::string &  option_name 
)

Definition at line 39 of file RegexParserDataWrapper.cpp.

Referenced by foreign_storage::RegexParserDataWrapper::validateTableOptions().

39  {
40  try {
41  boost::regex{regex};
42  } catch (const std::exception& e) {
43  throw ForeignStorageException{"Error parsing " + option_name + " \"" + regex +
44  "\": " + e.what()};
45  }
46 }

+ Here is the caller graph for this function: