l.t.i.t.TranslationFormatBaseError(TranslationImportExportBaseException) : class documentation

Part of lp.translations.interfaces.translationimporter View In Hierarchy

Known subclasses: lp.translations.interfaces.translationimporter.TranslationFormatInvalidInputError, lp.translations.interfaces.translationimporter.TranslationFormatSyntaxError

Base exception for errors in translation format files.
Method __init__ Initialize the exception information.
Method represent Return human-readable description of error location.
def __init__(self, filename=None, line_number=None, message=None):
Initialize the exception information.
ParametersfilenameThe file name that is being parsed.
line_numberThe line number where the error was found.
messageThe concrete syntax error found. If we get a not None value here, filename and line_number are ignored.
def represent(self, default_message):
Return human-readable description of error location.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.