fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 gpserror.h - description 00003 00004 begin : Mon May 19 2003 00005 copyright : (C) 2003 by A Kopmann 00006 email : kopmann@ipe.fzk.de 00007 status : 00008 test : 00009 history : 00010 ***************************************************************************/ 00011 00012 00013 #ifndef GPSERROR_H 00014 #define GPSERROR_H 00015 00016 00017 #include <cstdio> 00018 #include <string> 00019 #include <stdexcept> 00020 00021 00026 class GpsError : public std::runtime_error { 00027 00028 public: 00029 ~GpsError() throw() {} 00030 00031 GpsError(const char *msg) throw() 00032 : runtime_error(msg) { } 00033 00034 const char *getMsg() 00035 { return what(); } 00036 00037 void displayMsg(FILE *fout) 00038 { fprintf(fout,"GpsError: %s\n", what() ); } 00039 }; 00040 00041 #endif 00042 00043