fastoad.io.xml.exceptions module
Exceptions for io.xml module
- exception fastoad.io.xml.exceptions.FastXPathEvalError[source]
Bases:
FastErrorRaised when some xpath could not be resolved
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception fastoad.io.xml.exceptions.FastXpathTranslatorInconsistentLists[source]
Bases:
FastErrorRaised when list of variable names and list of XPaths have not the same length
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception fastoad.io.xml.exceptions.FastXpathTranslatorDuplicates[source]
Bases:
FastErrorRaised when list of variable names or list of XPaths have duplicate entries
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception fastoad.io.xml.exceptions.FastXpathTranslatorVariableError(variable)[source]
Bases:
FastErrorRaised when a variable does not match any xpath in the translator file.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception fastoad.io.xml.exceptions.FastXpathTranslatorXPathError(xpath)[source]
Bases:
FastErrorRaised when a xpath does not match any variable in the translator file.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception fastoad.io.xml.exceptions.FastXmlFormatterDuplicateVariableError[source]
Bases:
FastErrorRaised a variable is defined more than once in a XML file
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.