DynExp
Highly flexible laboratory automation for dynamically changing experiments.
DynExp::RunnableObject::NotUnusedException Class Reference

Exception type thrown by TerminateImpl() if the RunnableObject cannot be terminated for being used by another Object instance. More...

Public Member Functions

 NotUnusedException (const RunnableObject &Parent)
 Constructs an exception instance. Initializes UserNames with the content of ObjectUserList::GetUserNamesStringUnsafe() invoked on Parent. More...
 
std::string_view GetUserNames () const
 Getter for UserNames. More...
 
std::string GetErrorMessage () const
 Genereates a user-readable error message containing the content of UserNames. More...
 

Private Attributes

std::string UserNames
 String with identifiers of the Object instances making use of the throwing RunnableObject instance. More...
 

Detailed Description

Exception type thrown by TerminateImpl() if the RunnableObject cannot be terminated for being used by another Object instance.

Definition at line 2453 of file Object.h.

Constructor & Destructor Documentation

◆ NotUnusedException()

DynExp::RunnableObject::NotUnusedException::NotUnusedException ( const RunnableObject Parent)
inline

Constructs an exception instance. Initializes UserNames with the content of ObjectUserList::GetUserNamesStringUnsafe() invoked on Parent.

Parameters
ParentRunnableObject instance which constructs this exception

Definition at line 2461 of file Object.h.

Member Function Documentation

◆ GetErrorMessage()

std::string DynExp::RunnableObject::NotUnusedException::GetErrorMessage ( ) const

Genereates a user-readable error message containing the content of UserNames.

Returns
Error message describing which Object instances make use of the throwing RunnableObject instance.

Definition at line 512 of file Object.cpp.

◆ GetUserNames()

std::string_view DynExp::RunnableObject::NotUnusedException::GetUserNames ( ) const
inline

Getter for UserNames.

Returns
Returns UserNames

Definition at line 2467 of file Object.h.

Member Data Documentation

◆ UserNames

std::string DynExp::RunnableObject::NotUnusedException::UserNames
private

String with identifiers of the Object instances making use of the throwing RunnableObject instance.

Definition at line 2479 of file Object.h.


The documentation for this class was generated from the following files: