|
From: <mk...@us...> - 2003-04-12 22:32:54
|
Update of /cvsroot/csp/APPLICATIONS/SimData/Include/SimData
In directory sc8-pr-cvs1:/tmp/cvs-serv2472/Include/SimData
Modified Files:
Exception.h
Log Message:
see CHANGES.current
Index: Exception.h
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/SimData/Include/SimData/Exception.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Exception.h 12 Apr 2003 08:56:37 -0000 1.7
--- Exception.h 12 Apr 2003 22:32:51 -0000 1.8
***************
*** 38,46 ****
/**
! * Base class for all SimData expections.
*
* @author Mark Rose <mr...@st...>
*/
! class SIMDATA_EXPORT Exception { //: public std::runtime_error {
std::string _msg;
std::string _type;
--- 38,46 ----
/**
! * General expection base class with error reporting.
*
* @author Mark Rose <mr...@st...>
*/
! class SIMDATA_EXPORT ExceptionBase { //: public std::runtime_error {
std::string _msg;
std::string _type;
***************
*** 53,62 ****
* @param msg a string providing additional information about the error.
*/
! Exception(std::string type="Exception", std::string msg="");
/**
* Copy constructor.
*/
! Exception(Exception const &e);
/**
--- 53,62 ----
* @param msg a string providing additional information about the error.
*/
! ExceptionBase(std::string const &type="Exception", std::string const &msg="");
/**
* Copy constructor.
*/
! ExceptionBase(ExceptionBase const &e);
/**
***************
*** 66,70 ****
* details to stderr on destruction.
*/
! virtual ~Exception();
/**
--- 66,70 ----
* details to stderr on destruction.
*/
! virtual ~ExceptionBase();
/**
***************
*** 93,96 ****
--- 93,105 ----
*/
void details();
+ };
+
+ /**
+ * Base class for all SimData specific exceptions.
+ */
+ class Exception: public ExceptionBase {
+ public:
+ Exception(std::string const &type="Exception", std::string const &msg=""):
+ ExceptionBase(type, msg) { }
};
|