run_iocsh.exceptions

Exception classes for run-iocsh.

Exceptions

RunIocshError

Base class for exceptions in this module.

IocshStateError

Exception raised for programming errors (wrong state transitions).

IocshAlreadyRunningError

Exception raised when IOC is started a second time.

IocshTimeoutError

Exception raised when an operation did not complete within its timeout.

IocshStartupError

Exception raised when IOC exits before the expected readiness pattern appears.

IocshExitedError

Exception raised when the IOC exits on its own before it is told to.

IocshOutputError

Base exception for errors detected in IOC output.

IocshFileNotFoundError

Exception raised when a file referenced in the startup script is not found.

IocshModuleNotFoundError

Exception raised when the required module is not found.

IocshMissingSharedLibraryError

Exception raised when shared library is missing.

IocshProcessError

Exception raised when the iocsh script exits with a non null return code.

IocshPatternMatchError

Exception raised when a fail_on pattern matches the IOC output.

Module Contents

exception run_iocsh.exceptions.RunIocshError[source]

Bases: Exception

Base class for exceptions in this module.

exception run_iocsh.exceptions.IocshStateError[source]

Bases: RunIocshError

Exception raised for programming errors (wrong state transitions).

exception run_iocsh.exceptions.IocshAlreadyRunningError[source]

Bases: IocshStateError

Exception raised when IOC is started a second time.

exception run_iocsh.exceptions.IocshTimeoutError[source]

Bases: RunIocshError, TimeoutError

Exception raised when an operation did not complete within its timeout.

Also a builtin TimeoutError, so except TimeoutError keeps working while except RunIocshError catches every error this library raises.

exception run_iocsh.exceptions.IocshStartupError[source]

Bases: RunIocshError

Exception raised when IOC exits before the expected readiness pattern appears.

exception run_iocsh.exceptions.IocshExitedError[source]

Bases: RunIocshError

Exception raised when the IOC exits on its own before it is told to.

exception run_iocsh.exceptions.IocshOutputError[source]

Bases: RunIocshError

Base exception for errors detected in IOC output.

exception run_iocsh.exceptions.IocshFileNotFoundError[source]

Bases: IocshOutputError, FileNotFoundError

Exception raised when a file referenced in the startup script is not found.

exception run_iocsh.exceptions.IocshModuleNotFoundError[source]

Bases: IocshOutputError

Exception raised when the required module is not found.

exception run_iocsh.exceptions.IocshMissingSharedLibraryError[source]

Bases: IocshOutputError

Exception raised when shared library is missing.

exception run_iocsh.exceptions.IocshProcessError[source]

Bases: IocshOutputError

Exception raised when the iocsh script exits with a non null return code.

exception run_iocsh.exceptions.IocshPatternMatchError[source]

Bases: IocshOutputError

Exception raised when a fail_on pattern matches the IOC output.