basic_exception.h
上传用户:psq1974
上传日期:2007-01-06
资源大小:1195k
文件大小:1k
- /* Copyright (C) 1998, 1999 State University of New York at Stony Brook
- Author: Andrew V. Shuvalov ( andrew@ecsl.cs.sunysb.edu )
- Software license is located in file "COPYING"
- */
- #ifndef _basic_exception_h_
- #define _basic_exception_h_
- #include <string>
- /** generic exception
- */
- class BasicException {
- string text;
- public:
- BasicException() {}
- void init( const char *format, ... );
- void init( const char *format, va_list ap );
- const string &getText() { return text; }
- };
- #endif // _basic_exception_h_