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.
 
 WrongResourceLockStatusForOperation (const WrongResourceLockStatusForOperation &other) throw ()
 Copy constructor.
 
virtual ~WrongResourceLockStatusForOperation () throw ()
 Destructor.
 
bool lockStatusLocked () const throw ()
 Returns the lock status when the exception was thrown.
 
const char * operationName () const throw ()
 Returns the name of the operation that couldn't be perfomed.
 
WrongResourceLockStatusForOperationoperator= (const WrongResourceLockStatusForOperation &other) throw ()
 Copy operator.
 
virtual const char * what () const throw ()
 Returns a C string describing the exception.
 

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 1631 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 1645 of file configurationexceptions.h.

Copy constructor.

Parameters
otherthe exception to copy

Definition at line 1660 of file configurationexceptions.h.

virtual ~WrongResourceLockStatusForOperation ( ) throw ()
inlinevirtual

Destructor.

Definition at line 1694 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 1714 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 1724 of file configurationexceptions.h.

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

Copy operator.

Parameters
otherthe exception to copy

Definition at line 1675 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 1703 of file configurationexceptions.h.


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