rwlogo
SourcePro 11.1

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWTHRIllegalUsage Class Reference
[Thread-compatible Exceptions]

Exception thrown when a thread attempts to access a function, method, or value for which it does not have access. More...

#include <rw/threxcept/RWTHRIllegalUsage.h>

Inheritance diagram for RWTHRIllegalUsage:
RWTHRxmsg RWxmsg RWTHRBoundsError RWTHRIllegalAccess RWTHRInvalidPointer RWTHROperationNotSupported RWTHRThreadActive RWTHRThreadNotActive

List of all members.

Public Member Functions

virtual void raise (void) const
virtual RWTHRxmsgclone (void) const
 RWTHRIllegalUsage (const RWCString &reason="Invalid usage")

Detailed Description

An RWTHRIllegalUsage is thrown when a thread attempts to access a function, method, or value for which it does not have access. For example, a thread attempting to release a mutex that was not acquired by it.


Constructor & Destructor Documentation

RWTHRIllegalUsage::RWTHRIllegalUsage ( const RWCString reason = "Invalid usage"  ) 

Constructs an exception with the message string set to reason.


Member Function Documentation

virtual RWTHRxmsg* RWTHRIllegalUsage::clone ( void   )  const [virtual]

Calls the copy constructor of the runtime (derived) type of self and returns the result.

Reimplemented from RWTHRxmsg.

Reimplemented in RWTHRBoundsError, RWTHRIllegalAccess, RWTHRInvalidPointer, RWTHROperationNotSupported, RWTHRThreadActive, and RWTHRThreadNotActive.

virtual void RWTHRIllegalUsage::raise ( void   )  const [virtual]

Throws an exception of the runtime (derived) type of self.

Reimplemented from RWTHRxmsg.

Reimplemented in RWTHRBoundsError, RWTHRIllegalAccess, RWTHRInvalidPointer, RWTHROperationNotSupported, RWTHRThreadActive, and RWTHRThreadNotActive.


© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.