def __str__(self):
return unicode(self).encode(get_encoding())
+
+class InterruptParsingError(Exception):
+ """Exception used to interrupt the parsing of the command file
+ without raising an error (see N_JDC.exec_compile for usage)"""
# Modules EFICAS
import N_OBJECT
import N_CR
-from N_Exception import AsException
+from N_Exception import AsException, InterruptParsingError
from N_ASSD import ASSD
from N_info import message, SUPERV
from strfunc import get_encoding
CONTEXT.unset_current_step()
if self.appli != None : self.appli.affiche_infos('')
+ except InterruptParsingError:
+ # interrupt the command file parsing used by FIN to ignore the end of the file
+ pass
+
except EOFError:
# Exception utilise pour interrompre un jeu
# de commandes avant la fin