Changeset 131 for XMLIO_V2/dev/dev_rv/src/XMLIO/exception.hpp
- Timestamp:
- 10/13/10 15:25:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/exception.hpp
r115 r131 14 14 public : 15 15 16 XMLIOException(int _code): Exception(_code) 17 { /* Ne rien faire de plus */ } 18 XMLIOException(const std::string& _msg, int _code): Exception(_msg, _code) 19 { /* Ne rien faire de plus */ } 20 XMLIOException(const std::string& _msg, const std::string& _arg, int _code): Exception(_msg, _arg, _code) 21 { /* Ne rien faire de plus */ } 22 XMLIOException(const std::string& _msg, const Poco::Exception& _exc, int _code): Exception(_msg, _exc, _code) 16 XMLIOException(int _code) 17 : Exception(_code) 23 18 { /* Ne rien faire de plus */ } 24 19 20 XMLIOException(const std::string& _msg, int _code) 21 : Exception(_msg, _code) 22 { /* Ne rien faire de plus */ } 25 23 26 XMLIOException(const XMLIOException& _exc): Exception(_exc) 24 XMLIOException(const std::string& _msg, const std::string& _arg, int _code) 25 : Exception(_msg, _arg, _code) 26 { /* Ne rien faire de plus */ } 27 28 XMLIOException(const std::string& _msg, const Poco::Exception& _exc, int _code) 29 : Exception(_msg, _exc, _code) 30 { /* Ne rien faire de plus */ } 31 32 XMLIOException(const XMLIOException& _exc) 33 : Exception(_exc) 27 34 { /* Ne rien faire de plus */ } 28 35 … … 44 51 { 45 52 public : 46 XMLIOUndefinedValueException(const std::string& _msg): XMLIOException(_msg, 1001) {} 47 const char* name(void) const throw() { return ("XMLIO>UndefinedValueException"); } 53 XMLIOUndefinedValueException(const std::string& _msg) 54 : XMLIOException(_msg, 1001) 55 { /* Ne rien faire de plus */ } 56 57 const char* name(void) const throw() 58 { return ("XMLIO>UndefinedValueException"); } 48 59 49 60 }; //class XMLIOUndefinedException … … 52 63 { 53 64 public : 54 XMLIOStreamException(const std::string& _msg): XMLIOException(_msg, 1002) {} 55 const char* name(void) const throw() { return ("XMLIO>StreamException"); } 65 XMLIOStreamException(const std::string& _msg) 66 : XMLIOException(_msg, 1002) 67 { /* Ne rien faire de plus */ } 68 69 const char* name(void) const throw() 70 { return ("XMLIO>StreamException"); } 56 71 57 72 }; //class XMLIOStreamException … … 60 75 { 61 76 public : 62 XMLParsingException(const std::string& _msg): XMLIOException(_msg, 1003) {} 63 const char* name(void) const throw() { return ("XMLIO>XMLParsingException"); } 77 XMLParsingException(const std::string& _msg) 78 : XMLIOException(_msg, 1003) 79 { /* Ne rien faire de plus */ } 80 81 const char* name(void) const throw() 82 { return ("XMLIO>XMLParsingException"); } 64 83 65 84 }; //class XMLParsingException … … 68 87 { 69 88 public : 70 XMLIOIncompatibleTypeException(const std::string& _msg): XMLIOException(_msg, 1003) {} 71 const char* name(void) const throw() { return ("XMLIO>XMLIOIncompatibeTypeException"); } 89 XMLIOIncompatibleTypeException(const std::string& _msg) 90 : XMLIOException(_msg, 1003) 91 { /* Ne rien faire de plus */ } 92 93 const char* name(void) const throw() 94 { return ("XMLIO>XMLIOIncompatibeTypeException"); } 72 95 73 96 }; //class XMLIOIncompatibleTypeException
Note: See TracChangeset
for help on using the changeset viewer.