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: ProgramError

The 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: ProgramError

The 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: ProgramError

A required command argument is missing.

class mpilot.exceptions.NoSuchParameter(command: str | Any, parameter: str, lineno: int | None = None)

Bases: ProgramError

An argument was provided that is not valid for the command.

class mpilot.exceptions.ParameterNotValid(value: Any, required_type: str, lineno: int | None = None)

Bases: ProgramError

The value is invalid for the given argument.

class mpilot.exceptions.PathDoesNotExist(path: str, lineno: int | None = None)

Bases: ProgramError

The path is required to exist, but doesn’t.

class mpilot.exceptions.InvalidRelativePath(path: str, lineno: int | None = None)

Bases: ProgramError

A relative path was provided, but the program doesn’t have a working directory

class mpilot.exceptions.ResultDoesNotExist(result: str, lineno: int | None = None)

Bases: ProgramError

A result was referenced which does not exist.

class mpilot.exceptions.ResultTypeNotValid(result: str, lineno: int | None = None)

Bases: ProgramError

A specified result is not valid for the argument.

class mpilot.exceptions.ResultNotFuzzy(result: str, lineno: int | None = None)

Bases: ProgramError

The parameter requires fuzzy data, but the specified result is non-fuzzy.

class mpilot.exceptions.ResultIsFuzzy(result: str, lineno: int | None = None)

Bases: ProgramError

The parameter requires non-fuzzy data, but the specified result is fuzzy.

class mpilot.exceptions.RecursiveModelStructure(lineno: int | None = None, message: str | None = None)

Bases: ProgramError

The model graph is contains circular references.