00001 #include "exception.h" 00002 #include <string.h> 00003 #include <stdio.h> 00004 #include <stdarg.h> 00005 00009 const char* OptionException::what() const throw() 00010 { 00011 return text.c_str(); 00012 } 00013 00014 OptionException::OptionException(string t) 00015 { 00016 text = "Option Error : " + t; 00017 } 00018 00019 OptionException::~OptionException() throw() 00020 { 00021 } 00022 00026 const char* SytaxException::what() const throw() 00027 { 00028 return text.c_str(); 00029 } 00030 00031 SytaxException::SytaxException(string t) 00032 { 00033 text = "Syntax Error : " + t; 00034 } 00035 00036 SytaxException::~SytaxException() throw() 00037 { 00038 } 00039 00040 00041