00001 /* ${copyright}$ */ 00002 /* $Id: StringEncodingException.H 526 2006-03-01 22:10:46Z koji $ */ 00007 #ifndef __STRING_ENCODING_EXCEPTION_H__ 00008 #define __STRING_ENCODING_EXCEPTION_H__ 00009 00010 #include "libepp_nicbr.H" 00011 00012 #include "GeneralException.H" 00013 00014 LIBEPP_NICBR_NS_BEGIN 00015 00017 class StringEncodingException : public GeneralException 00018 { 00019 public: 00021 enum ExceptionCode { 00022 MISSING_CHAR = 5000, 00023 ASCII_ENCODING = 5001, 00024 ENCODING_SEQUENCE = 5002, 00025 FIRST_OCTET = 5003 00026 }; 00027 00029 00033 StringEncodingException(const int code, const string &msg) : 00034 GeneralException(code, msg) {}; 00035 00036 00037 }; 00038 00039 LIBEPP_NICBR_NS_END 00040 #endif //__STRING_ENCODING_EXCEPTION_H__