mpilot.exceptions¶
- class mpilot.exceptions.MPilotError¶
- class mpilot.exceptions.ProgramError(lineno: int | None = None, message: str | None = None)¶
Bases:
MPilotError
- class mpilot.exceptions.CommandDoesNotExist(name: str, lineno: int | None = None)¶
Bases:
ProgramErrorThe command file contains a command that could not be found in the command libraries.
- class mpilot.exceptions.DuplicateResult(result: str, lineno: int | None = None)¶
Bases:
ProgramErrorThe same result name was used more than once.
- class mpilot.exceptions.MissingParameters(command: str | Any, parameters: Sequence[str] | Set[str], lineno: int | None = None)¶
Bases:
ProgramErrorA required command argument is missing.
- class mpilot.exceptions.NoSuchParameter(command: str | Any, parameter: str, lineno: int | None = None)¶
Bases:
ProgramErrorAn argument was provided that is not valid for the command.
- class mpilot.exceptions.ParameterNotValid(value: Any, required_type: str, lineno: int | None = None)¶
Bases:
ProgramErrorThe value is invalid for the given argument.
- class mpilot.exceptions.PathDoesNotExist(path: str, lineno: int | None = None)¶
Bases:
ProgramErrorThe path is required to exist, but doesn’t.
- class mpilot.exceptions.InvalidRelativePath(path: str, lineno: int | None = None)¶
Bases:
ProgramErrorA relative path was provided, but the program doesn’t have a working directory
- class mpilot.exceptions.ResultDoesNotExist(result: str, lineno: int | None = None)¶
Bases:
ProgramErrorA result was referenced which does not exist.
- class mpilot.exceptions.ResultTypeNotValid(result: str, lineno: int | None = None)¶
Bases:
ProgramErrorA specified result is not valid for the argument.
- class mpilot.exceptions.ResultNotFuzzy(result: str, lineno: int | None = None)¶
Bases:
ProgramErrorThe parameter requires fuzzy data, but the specified result is non-fuzzy.
- class mpilot.exceptions.ResultIsFuzzy(result: str, lineno: int | None = None)¶
Bases:
ProgramErrorThe parameter requires non-fuzzy data, but the specified result is fuzzy.
- class mpilot.exceptions.RecursiveModelStructure(lineno: int | None = None, message: str | None = None)¶
Bases:
ProgramErrorThe model graph is contains circular references.