00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef C__MYEXCEPTION__H
00039 #define C__MYEXCEPTION__H
00040
00041 #include <stdio.h>
00042 #include <iostream>
00043 #include <string>
00044
00045 #include "ril_debug.h"
00046
00047 using namespace std;
00048
00050
00058 class CMyException
00059 {
00060 protected:
00061 int errorNum;
00062 string exceptionName;
00063
00064 virtual string getInnerErrorMsg() = 0;
00065 public:
00066 CMyException(int errorNum, string exceptionName);
00067 virtual ~CMyException() {};
00068 virtual string getErrorMsg();
00069 };
00070
00071 #endif
00072