33 #include <xercesc/util/PlatformUtils.hpp>
40 #ifdef CHECK_MEMORY_LEAKS
42 #endif // CHECK_MEMORY_LEAKS
60 XERCES_CPP_NAMESPACE::XMLPlatformUtils::Initialize();
62 }
catch (
const XERCES_CPP_NAMESPACE::XMLException& e) {
70 if (validationScheme ==
"never") {
72 }
else if (validationScheme ==
"auto") {
74 }
else if (validationScheme ==
"always") {
77 throw ProcessError(
"Unknown xml validation scheme + '" + validationScheme +
"'.");
79 if (netValidationScheme ==
"never") {
81 }
else if (netValidationScheme ==
"auto") {
83 }
else if (netValidationScheme ==
"always") {
86 throw ProcessError(
"Unknown network validation scheme + '" + netValidationScheme +
"'.");
93 for (std::vector<SUMOSAXReader*>::iterator i =
myReaders.begin(); i !=
myReaders.end(); ++i) {
97 XERCES_CPP_NAMESPACE::XMLPlatformUtils::Terminate();
115 const std::string& file,
const bool isNet) {
131 WRITE_ERROR(std::string(e.what()) != std::string(
"") ? std::string(e.what()) : std::string(
"Process Error"));
133 }
catch (
const std::runtime_error& re) {
134 WRITE_ERROR(
"Runtime error: " + std::string(re.what()) +
" while parsing '" + file +
"'");
136 }
catch (
const std::exception& ex) {
137 WRITE_ERROR(
"Error occurred: " + std::string(ex.what()) +
" while parsing '" + file +
"'");
140 WRITE_ERROR(
"Unspecified error occured wile parsing '" + file +
"'");