source: box/trunk/lib/common/BoxException.h @ 3062

Revision 3062, 877 bytes checked in by chris, 4 months ago (diff)

Allow getting the message out of a BoxException?.

  • Property svn:eol-style set to native
Line 
1// --------------------------------------------------------------------------
2//
3// File
4//              Name:    BoxException.h
5//              Purpose: Exception
6//              Created: 2003/07/10
7//
8// --------------------------------------------------------------------------
9
10#ifndef BOXEXCEPTION__H
11#define BOXEXCEPTION__H
12
13#include <exception>
14#include <string>
15
16// --------------------------------------------------------------------------
17//
18// Class
19//              Name:    BoxException
20//              Purpose: Exception
21//              Created: 2003/07/10
22//
23// --------------------------------------------------------------------------
24class BoxException : public std::exception
25{
26public:
27        BoxException();
28        ~BoxException() throw ();
29       
30        virtual unsigned int GetType() const throw() = 0;
31        virtual unsigned int GetSubType() const throw() = 0;
32        virtual const std::string& GetMessage() const = 0;
33
34private:
35};
36
37
38#endif // BOXEXCEPTION__H
39
Note: See TracBrowser for help on using the repository browser.