OmniSciDB  471d68cefb
 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 34 of file RegexParserDataWrapper.cpp.

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

34  {
35  try {
36  boost::regex{regex};
37  } catch (const std::exception& e) {
38  throw ForeignStorageException{"Error parsing " + option_name + " \"" + regex +
39  "\": " + e.what()};
40  }
41 }

+ Here is the caller graph for this function: