Exceptions (pyobs.utils.exceptions)

ExceptionHandler

exception ExceptionHandler(exc_type, limit, timespan, module, callback, throw)[source]

Create new instance of ExceptionHandler(exc_type, limit, timespan, module, callback, throw)

callback: Callable[[PyObsError], Coroutine[Any, Any, None]] | None

Alias for field number 4

exc_type: Type[PyObsError]

Alias for field number 0

limit: int

Alias for field number 1

module: str | None

Alias for field number 3

throw: bool

Alias for field number 5

timespan: float | None

Alias for field number 2

GrabImageError

exception GrabImageError(*args: Any, **kwargs: Any)[source]

InitError

exception InitError(*args: Any, **kwargs: Any)[source]

InvocationError

exception InvocationError(*args: Any, **kwargs: Any)[source]

Remote exception encapsulating basic exception from other module

LoggedException

exception LoggedException(time, exception)[source]

Create new instance of LoggedException(time, exception)

exception: PyObsError

Alias for field number 1

time: float

Alias for field number 0

ModuleError

exception ModuleError(*args: Any, **kwargs: Any)[source]

MotionError

exception MotionError(*args: Any, **kwargs: Any)[source]

MoveError

exception MoveError(*args: Any, **kwargs: Any)[source]

ParkError

exception ParkError(*args: Any, **kwargs: Any)[source]

PyObsError

exception PyObsError(message: str | None = None)[source]

Base class for all exceptions

RemoteError

exception RemoteError(*args: Any, **kwargs: Any)[source]

Exception for anything related to the communication between modules.

RemoteTimeoutError

exception RemoteTimeoutError(*args: Any, **kwargs: Any)[source]

SevereError

exception SevereError(exception: PyObsError, module: str | None = None)[source]

Severe exception that is raised after multiple raised other exceptions.

_Meta

exception _Meta[source]

Metaclass for defining exceptions.