SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWTHRIllegalAccess Class Reference

Exception thrown when an external or internal thread attempts to use a thread object member to which it lacks access. More...

#include <rw/threxcept/RWTHRIllegalAccess.h>

Inheritance diagram for RWTHRIllegalAccess:
RWTHRIllegalUsage RWTHRxmsg RWxmsg

Public Member Functions

 RWTHRIllegalAccess ()
 
 RWTHRIllegalAccess (const RWCString &reason)
 
virtual RWTHRxmsgclone (void) const
 
virtual void raise (void) const
 
- Public Member Functions inherited from RWTHRIllegalUsage
 RWTHRIllegalUsage ()
 
 RWTHRIllegalUsage (const RWCString &reason)
 
- 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

RWTHRIllegalAccess is used to report:

  • an attempt by an external thread to use a thread object member that is intended for use only by the thread represented by the thread object
  • an attempt by an internal thread to use a thread object member that is intended for use only by threads that were created external to the thread object

Constructor & Destructor Documentation

◆ RWTHRIllegalAccess() [1/2]

RWTHRIllegalAccess::RWTHRIllegalAccess ( )

Constructs an exception with a default message.

◆ RWTHRIllegalAccess() [2/2]

RWTHRIllegalAccess::RWTHRIllegalAccess ( const RWCString & reason)

Constructs an exception with the message string set to reason.

Member Function Documentation

◆ clone()

virtual RWTHRxmsg * RWTHRIllegalAccess::clone ( void ) const
virtual

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

Reimplemented from RWTHRIllegalUsage.

◆ raise()

virtual void RWTHRIllegalAccess::raise ( void ) const
virtual

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

Reimplemented from RWTHRIllegalUsage.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.