WrongResourceLockStatusForOperation Class Reference

The exception thrown when an operation is performed on a ConcurrentResourcesUser object but the lock is not in the correct status. More...

Inheritance diagram for WrongResourceLockStatusForOperation:

Public Member Functions

 WrongResourceLockStatusForOperation (const char *operationName, bool lockStatusLocked) throw ()
 Constructor. More...
 
 WrongResourceLockStatusForOperation (const WrongResourceLockStatusForOperation &other) throw ()
 Copy constructor. More...
 
virtual ~WrongResourceLockStatusForOperation () throw ()
 Destructor. More...
 
bool lockStatusLocked () const throw ()
 Returns the lock status when the exception was thrown. More...
 
const char * operationName () const throw ()
 Returns the name of the operation that couldn't be perfomed. More...
 
WrongResourceLockStatusForOperationoperator= (const WrongResourceLockStatusForOperation &other) throw ()
 Copy operator. More...
 
virtual const char * what () const throw ()
 Returns a C string describing the exception. More...
 

Detailed Description

The exception thrown when an operation is performed on a ConcurrentResourcesUser object but the lock is not in the correct status.

Definition at line 1733 of file configurationexceptions.h.

Constructor & Destructor Documentation

WrongResourceLockStatusForOperation ( const char *  operationName,
bool  lockStatusLocked 
)
throw (
)
inline

Constructor.

Parameters
operationNamethe name of the operation that couldn't be performed in the current lock status. The buffer for this is at most 256 characters (including the '\0' terminator)
lockStatusLockedtrue if the lock on resources was held (but it shouldn't), false if the lock wasn't held (but it should have been)

Definition at line 1747 of file configurationexceptions.h.

Copy constructor.

Parameters
otherthe exception to copy

Definition at line 1762 of file configurationexceptions.h.

virtual ~WrongResourceLockStatusForOperation ( )
throw (
)
inlinevirtual

Destructor.

Definition at line 1796 of file configurationexceptions.h.

Member Function Documentation

bool lockStatusLocked ( ) const
throw (
)
inline

Returns the lock status when the exception was thrown.

Returns
true if the lock on resources was held (but it shouldn't), false if the lock wasn't held (but it should have been)

Definition at line 1816 of file configurationexceptions.h.

const char* operationName ( ) const
throw (
)
inline

Returns the name of the operation that couldn't be perfomed.

Returns
the name of the operation that couldn't be perfomed

Definition at line 1826 of file configurationexceptions.h.

WrongResourceLockStatusForOperation& operator= ( const WrongResourceLockStatusForOperation other)
throw (
)
inline

Copy operator.

Parameters
otherthe exception to copy

Definition at line 1777 of file configurationexceptions.h.

virtual const char* what ( ) const
throw (
)
inlinevirtual

Returns a C string describing the exception.

Returns
a C string describing the exception

Definition at line 1805 of file configurationexceptions.h.


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