FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
Public Member Functions | List of all members
CMonitorException Class Reference

#include <MonitorException.h>

Inheritance diagram for CMonitorException:
Inheritance graph
[legend]
Collaboration diagram for CMonitorException:
Collaboration graph
[legend]

Public Member Functions

 CMonitorException (int correctOwner, int actualOwner, const char *file, const char *line)
 
 CMonitorException (const CMonitorException &rhs)
 
CMonitorExceptionoperator= (const CMonitorException &rhs)
 
int operator== (const CMonitorException &rhs) const
 
int operator!= (const CMonitorException &rhs) const
 
virtual const char * ReasonText () const
 
virtual int ReasonCode () const
 
- Public Member Functions inherited from CException
 CException (const char *pszAction)
 
 CException (const std::string &rsAction)
 
 CException (const CException &aCException)
 
CExceptionoperator= (const CException &aCException)
 
int operator== (const CException &aCException) const
 
int operator!= (const CException &rException) const
 
const char * getAction () const
 
const char * WasDoing () const
 

Additional Inherited Members

- Protected Member Functions inherited from CException
void setAction (const char *pszAction)
 
void setAction (const std::string &rsAction)
 
virtual void DoAssign (const CException &rhs)
 

Detailed Description

Objects of this class are exceptions that describe errors in a monitor states. A monitor is a synchronization primitive that is supported by the threads library in the NSCL DAQ base software libraries.

There are several operations on monitors that require the monitor to be held by the invoking thread. This exception is thrown if that is not the case.

Constructor & Destructor Documentation

◆ CMonitorException() [1/2]

CMonitorException::CMonitorException ( int  correctOwner,
int  actualOwner,
const char *  file,
const char *  line 
)

Construct the exception. The context text will be "Performing operations on a Synchronizable object" The reason will be: Mutex should be owned by correctOwner but was owned by actualOwner at FILE:LINE : WasDoing

Parameters
correctOwner- The Pid of the thread that should be owning the mutex.
actualOwner- The Pid of the thread that actually owns the mutex.
file- Name of the file in which the exception was constructed Typically use FILE
line- Line number in file where exception was constructed, Typically use LINE

◆ CMonitorException() [2/2]

CMonitorException::CMonitorException ( const CMonitorException rhs)

Copy construction:

Member Function Documentation

◆ operator!=()

int CMonitorException::operator!= ( const CMonitorException rhs) const

Inequality is when equality is not true:

◆ operator=()

CMonitorException & CMonitorException::operator= ( const CMonitorException rhs)

Assignement

◆ operator==()

int CMonitorException::operator== ( const CMonitorException rhs) const

Comparison for equality.

◆ ReasonCode()

int CMonitorException::ReasonCode ( ) const
virtual

Return the computer usable reason code. This is always -1 in this class.

Reimplemented from CException.

◆ ReasonText()

const char * CMonitorException::ReasonText ( ) const
virtual

Return human readable exception information. See the class description to see what that means.

Reimplemented from CException.


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