SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWTHRIllegalUsage Class Reference

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

#include <rw/threxcept/RWTHRIllegalUsage.h>

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

Public Member Functions

 RWTHRIllegalUsage ()
 
 RWTHRIllegalUsage (const RWCString &reason)
 
virtual RWTHRxmsgclone (void) const
 
virtual void raise (void) const
 
- Public Member Functions inherited from RWTHRxmsg
 RWTHRxmsg (const RWCString &msg)
 
 RWTHRxmsg (const RWTHRxmsg &second)
 
 RWTHRxmsg (void)
 
virtual ~RWTHRxmsg (void)
 
RWTHRxmsgoperator= (const RWTHRxmsg &second)
 
- Public Member Functions inherited from RWxmsg
 RWxmsg (const char *msg)
 
 RWxmsg (const RWxmsg &msg)
 
 RWxmsg (RWxmsg &&msg)
 
RWxmsgoperator= (const RWxmsg &)
 
RWxmsgoperator= (RWxmsg &&msg)
 
void swap (RWxmsg &rhs)
 
virtual const char * why () const
 

Additional Inherited Members

- Protected Member Functions inherited from RWxmsg
 RWxmsg (const char *msg, bool doCopy)
 

Detailed Description

An RWTHRIllegalUsage is thrown when a thread attempts to access a function, method, or value for which it lacks access. For example, this exception would be thrown if a thread attempted to release a mutex that it had not acquired.

Constructor & Destructor Documentation

◆ RWTHRIllegalUsage() [1/2]

RWTHRIllegalUsage::RWTHRIllegalUsage ( )

Constructs an exception with a default message.

◆ RWTHRIllegalUsage() [2/2]

RWTHRIllegalUsage::RWTHRIllegalUsage ( const RWCString & reason)

Constructs an exception with the message string set to reason.

Member Function Documentation

◆ clone()

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.

◆ raise()

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 © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.