OSSP CVS Repository

ossp - Check-in [2840]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2840
Date: 2002-Nov-18 23:12:02 (local)
2002-Nov-18 22:12:02 (UTC)
User:ms
Branch:
Comment: Use a titrex exception class for more flexible warning and error handling.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_except.cpp      added-> 1.1
ossp-pkg/as/as-gui/as_except.h      added-> 1.1
ossp-pkg/titraq/titrex.cpp      added-> 1.1
ossp-pkg/titraq/titrex.h      added-> 1.1

ossp-pkg/as/as-gui/as_except.cpp -> 1.1

*** /dev/null    Tue May 21 15:22:11 2024
--- -    Tue May 21 15:27:24 2024
***************
*** 0 ****
--- 1,14 ----
+ #include "titrex.h"
+ 
+ // Report general exception
+ void Genexcept::reportErr(void)
+ {
+     // Basically, print the message and exit
+     using namespace std;
+     cout << szMessage << endl;
+ }
+ 
+ // Destroy general exception
+ Genexcept::~Genexcept(void)
+ {
+ }


ossp-pkg/as/as-gui/as_except.h -> 1.1

*** /dev/null    Tue May 21 15:22:11 2024
--- -    Tue May 21 15:27:24 2024
***************
*** 0 ****
--- 1,21 ----
+ #ifndef TITRAQEXCEPT_H
+ #define TITRAQEXCEPT_H
+ 
+ #include <iostream>
+ 
+ 
+ // General string-based exceptions
+ // FIXME: Rewrite according to
+ // OSSP error handling policy
+ class Genexcept
+ {
+ private:
+     char *szMessage;
+ 
+ public:
+     Genexcept(char *szInmess) {szMessage = szInmess;};
+     void reportErr(void);
+     ~Genexcept(void);
+ };
+ 
+ #endif // TITRAQEXCEPT_H



CVSTrac 2.0.1