Exceptions

PyTest Salt Factories related exceptions

exception saltfactories.exceptions.SaltFactoriesException[source]

Bases: Exception

Base exception for all pytest salt factories

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception saltfactories.exceptions.ProcessFailed(message, cmdline=None, stdout=None, stderr=None, exitcode=None, exc=None)[source]

Bases: saltfactories.exceptions.SaltFactoriesException

Exception raised when a sub-process fails

Parameters
  • message (str) – The exception message

  • cmdline (list,tuple) – The command line used to start the process

  • stdout (str) – The stdout returned by the process

  • stderr (str) – The stderr returned by the process

  • exitcode (int) – The exitcode returned by the process

  • exc (Exception) – The original exception raised

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception saltfactories.exceptions.FactoryFailure(message, cmdline=None, stdout=None, stderr=None, exitcode=None, exc=None)[source]

Bases: saltfactories.exceptions.ProcessFailed

Exception raised when a sub-process fails on one of the factories

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception saltfactories.exceptions.FactoryNotStarted(message, cmdline=None, stdout=None, stderr=None, exitcode=None, exc=None)[source]

Bases: saltfactories.exceptions.FactoryFailure

Exception raised when a factory failed to start

Please look at FactoryFailure for the supported keyword arguments documentation.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception saltfactories.exceptions.FactoryNotRunning(message, cmdline=None, stdout=None, stderr=None, exitcode=None, exc=None)[source]

Bases: saltfactories.exceptions.FactoryFailure

Exception raised when trying to use a factory’s .stopped context manager and the factory is not running

Please look at FactoryFailure for the supported keyword arguments documentation.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception saltfactories.exceptions.ProcessNotStarted(message, cmdline=None, stdout=None, stderr=None, exitcode=None, exc=None)[source]

Bases: saltfactories.exceptions.FactoryFailure

Exception raised when a process failed to start

Please look at FactoryFailure for the supported keyword arguments documentation.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception saltfactories.exceptions.FactoryTimeout(message, cmdline=None, stdout=None, stderr=None, exitcode=None, exc=None)[source]

Bases: saltfactories.exceptions.FactoryNotStarted

Exception raised when a process timed-out

Please look at FactoryFailure for the supported keyword arguments documentation.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.