FRIBParallelanalysis
1.0
FrameworkforMPIParalleldataanalysisatFRIB
|
#include <CInvalidArgumentException.h>
Public Member Functions | |
CInvalidArgumentException (std::string argument, std::string whybad, std::string wasDoing) | |
CInvalidArgumentException (const CInvalidArgumentException &rhs) | |
virtual | ~CInvalidArgumentException () |
CInvalidArgumentException & | operator= (const CInvalidArgumentException &rhs) |
int | operator== (const CInvalidArgumentException &rhs) const |
int | operator!= (const CInvalidArgumentException &rhs) const |
virtual const char * | ReasonText () const |
![]() | |
CException (const char *pszAction) | |
CException (const std::string &rsAction) | |
CException (const CException &aCException) | |
CException & | operator= (const CException &aCException) |
int | operator== (const CException &aCException) const |
int | operator!= (const CException &rException) const |
const char * | getAction () const |
virtual int | ReasonCode () const |
const char * | WasDoing () const |
Additional Inherited Members | |
![]() | |
void | setAction (const char *pszAction) |
void | setAction (const std::string &rsAction) |
virtual void | DoAssign (const CException &rhs) |
This class is ressponsible for reporting exceptions that occur because some function (member or otherwise) has been passed an invalid argument of some sort.
To use this exception type, the thrower must be able to create a textual equivalent of the bad argument, a string that describes why the argument is bad as well as supplying the usual context string.
CInvalidArgumentException::CInvalidArgumentException | ( | std::string | argument, |
std::string | whybad, | ||
std::string | wasDoing | ||
) |
argument | - The texulized version of the bad argument. |
whybad | - The reason the argument is bad. |
wasdoing | - Context information about what was happening when the exception was thrown. |
CInvalidArgumentException::CInvalidArgumentException | ( | const CInvalidArgumentException & | rhs | ) |
Copy construction
rhs | Object from which a new copy is constructed. |
|
virtual |
Destructor just needs to chain to the base class.
int CInvalidArgumentException::operator!= | ( | const CInvalidArgumentException & | rhs | ) | const |
Inequality is the logical inverse of equality.
rhs | - Object being compared to *this. |
!operator==(rhs) |
CInvalidArgumentException & CInvalidArgumentException::operator= | ( | const CInvalidArgumentException & | rhs | ) |
Assignement from rhs.
rhs | - The object that will be assigned into *this. |
*this |
int CInvalidArgumentException::operator== | ( | const CInvalidArgumentException & | rhs | ) | const |
rhs | - Object compared for equality with *this. |
1 | - Equal. |
0 | - Not equal. |
|
virtual |
A | human readable string that describes the error that caused the exception to be thrown. |
Reimplemented from CException.