aop.tools#

Author:

Amélie Solveigh Hohe

Contact:

nina.tolfersheimer@posteo.de

This module contains auxiliary classes and functions for the aop package.

Module Contents#

exception aop.tools.AolFileAlreadyExistsError(filepath: str, session_id: str)#

Bases: Exception

An error raised upon trying to initialize an .aol file that already exists.

exception aop.tools.AolNotFoundError(session_id: str)#

Bases: Exception

An error raised upon trying to load an .aol file that doesn’t exist.

exception aop.tools.AopFileAlreadyExistsError(filepath: str, session_id: str)#

Bases: Exception

An error raised upon trying to initialize an .aop file that already exists.

exception aop.tools.InvalidTimeStringError(invalid_string: str)#

Bases: Exception

An error raised upon providing a string to current_jd’s time argument that is not interpretable as a time.

exception aop.tools.SessionIDDoesntExistOnFilepathError(invalid_id: str)#

Bases: Exception

An error raised when a specified session ID could not be found on the provided filepath.

exception aop.tools.SessionStateError(event: str, state: str)#

Bases: Exception

An error raised when the current session parameters don’t allow for the requested operation.

__str__() str#

The default custom error message of SessionStateError

Returns:

default custom error message

Return type:

str

exception aop.tools.NotInterruptableError#

Bases: SessionStateError

An error raised when trying to interrupt a session that is not currently ‘running’.

Inherits from SessionStateError, uses “interrupt session” as impossible operation and “not running” as problematic session state.

exception aop.tools.NotResumableError#

Bases: SessionStateError

An error raised when trying to resume a session that is not currently ‘running’.

Inherits from SessionStateError, uses “resume session” as impossible operation and “not running” as problematic session state.

exception aop.tools.NotAbortableError#

Bases: SessionStateError

An error raised when trying to abort a session that is not currently ‘running’.

Inherits from SessionStateError, uses “abort session” as impossible operation and “not running” as problematic session state.

exception aop.tools.NotEndableError#

Bases: SessionStateError

An error raised when trying to end a session that is not currently ‘running’.

Inherits from SessionStateError, uses “end session” as impossible operation and “not running” as problematic session state.

exception aop.tools.AlreadyInterruptedError#

Bases: SessionStateError

An error raised when trying to interrupt a session that is already ‘interrupted’.

Inherits from SessionStateError, uses “interrupt session” as impossible operation and “interrupted” as problematic session state.

exception aop.tools.NotInterruptedError#

Bases: SessionStateError

An error raised when trying to resume a session that is not currently ‘interrupted’.

Inherits from SessionStateError, uses “resume session” as impossible operation and “not interrupted” as problematic session state.

exception aop.tools.SessionNotStartedError(illegal_operation: str)#

Bases: Exception

An error raised when trying to perform a session operation before the session has been started.

__repr__() str#

Custom error message.

Returns:

custom error message

Return type:

str