-// Copyright (C) 2006-2015 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2016 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
{
if ( xmlParseDocument(saxContext) == -1 )
{
+ if(!currentProc)
+ throw Exception("Basic error during parsing.");
YACS::ENGINE::Logger* logger = currentProc->getLogger("parser");
logger->fatal( saxContext->lastError.message, file, saxContext->input->line );
}
}
catch(Exception& e)
{
+ if(!currentProc)
+ throw e;
YACS::ENGINE::Logger* logger = currentProc->getLogger("parser");
logger->fatal(e.what(), file, saxContext->input->line);
saxContext = 0;