core.exceptions

Module Contents

exception core.exceptions.LemonException

Common base for all lemon.py exceptions.

exception core.exceptions.DotEnvException

Raised when some module requires missing .env variable.

exception core.exceptions.ModuleException(repository: str, module: str, message: str)

Raised when module-related error occurs.

Parameters
  • repository – Repository name.

  • module – Module name.

  • message – Exception message.

exception core.exceptions.BadTranslation(langfile: str = None, command: str = None, string: str = None, key: str = None)

Raised when translation file is not valid or contains errors.

Four different states may occur:

  • Language file is not found.

  • Command is not found.

  • Command string is not found.

  • Command string does not have requested key.

Parameters
  • langfile – Path to language file.

  • command – Qualified command name.

  • string – Requested string name.

  • key – String variable.