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...

List of all members.

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 1632 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 1646 of file configurationexceptions.h.

Copy constructor.

Parameters:
otherthe exception to copy

Definition at line 1661 of file configurationexceptions.h.

virtual ~WrongResourceLockStatusForOperation ( ) throw () [inline, virtual]

Destructor.

Definition at line 1695 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 1715 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 1725 of file configurationexceptions.h.

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

Copy operator.

Parameters:
otherthe exception to copy

Definition at line 1676 of file configurationexceptions.h.

virtual const char* what ( ) const throw () [inline, virtual]

Returns a C string describing the exception.

Returns:
a C string describing the exception

Definition at line 1704 of file configurationexceptions.h.


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