[docs]classRunIocshError(Exception):"""Base class for exceptions in this module."""
[docs]classIocshStateError(RunIocshError):"""Exception raised for programming errors (wrong state transitions)."""
[docs]classIocshAlreadyRunningError(IocshStateError):"""Exception raised when IOC is started a second time."""
[docs]classIocshTimeoutError(RunIocshError):"""Exception raised when a timeout occurred trying to send exit to the IOC."""
[docs]classIocshStartupError(RunIocshError):"""Exception raised when IOC exits before the expected readiness pattern appears."""
[docs]classIocshOutputError(RunIocshError):"""Base exception for errors detected in IOC output."""
[docs]classIocshFileNotFoundError(IocshOutputError,FileNotFoundError):"""Exception raised when a file referenced in the startup script is not found."""
[docs]classIocshModuleNotFoundError(IocshOutputError):"""Exception raised when the required module is not found."""
[docs]classIocshMissingSharedLibraryError(IocshOutputError):"""Exception raised when shared library is missing."""
[docs]classIocshProcessError(IocshOutputError):"""Exception raised when the iocsh script exits with a non null return code."""
[docs]classIocshPatternMatchError(IocshOutputError):"""Exception raised when a fail_on pattern matches the IOC output."""