00001 /* 00002 * HT Editor 00003 * htexcept.cc 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 #include <stdio.h> 00022 #include <stdarg.h> 00023 00024 #include "htexcept.h" 00025 #include "snprintf.h" 00026 00027 /* 00028 * CLASS ht_exception 00029 */ 00030 00031 ht_exception::ht_exception() 00032 { 00033 } 00034 00035 const char *ht_exception::what() 00036 { 00037 return NULL; 00038 } 00039 00040 /* 00041 * CLASS ht_msg_exception 00042 */ 00043 00044 ht_msg_exception::ht_msg_exception(char *e,...) 00045 { 00046 va_list va; 00047 va_start(va, e); 00048 ht_vsnprintf(estr, sizeof estr, e, va); 00049 va_end(va); 00050 } 00051 00052 const char *ht_msg_exception::what() 00053 { 00054 return estr; 00055 }