Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htexcept.h

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      htexcept.h
00004  *
00005  *      Copyright (C) 1999-2002 Stefan Weyergraf (stefan@weyergraf.de)
00006  *
00007  *      This program is free software; you can redistribute it and/or modify
00008  *      it under the terms of the GNU General Public License version 2 as
00009  *      published by the Free Software Foundation.
00010  *
00011  *      This program is distributed in the hope that it will be useful,
00012  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *      GNU General Public License for more details.
00015  *
00016  *      You should have received a copy of the GNU General Public License
00017  *      along with this program; if not, write to the Free Software
00018  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #ifndef __HTEXCEPT_H__
00022 #define __HTEXCEPT_H__
00023 
00024 #include <exception>
00025 
00026 /*
00027  *      CLASS ht_exception
00028  */
00029 
00030 class ht_exception {
00031 public:
00032                         ht_exception();
00033 /* new */
00034         virtual const char *what();
00035 };
00036 
00037 /*
00038  *      CLASS ht_io_exception
00039  */
00040 
00041 #define HT_MSG_EXCEPTION_MAX_ERRSTR             256
00042 
00043 class ht_msg_exception: public ht_exception {
00044 protected:
00045         char estr[HT_MSG_EXCEPTION_MAX_ERRSTR];
00046 public:
00047                             ht_msg_exception(char *errstr,...);
00048 /* new */
00049         virtual const char *what();
00050 };
00051 
00052 /*
00053  *      CLASS ht_io_exception
00054  */
00055 
00056 #define ht_io_exception ht_msg_exception
00057 
00058 #endif /* __HTEXCEPT_H__ */

Generated on Fri May 7 21:15:33 2004 by doxygen 1.3.5