diff options
Diffstat (limited to 'ACE/ACEXML/common/SAXExceptions.inl')
-rw-r--r-- | ACE/ACEXML/common/SAXExceptions.inl | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/ACE/ACEXML/common/SAXExceptions.inl b/ACE/ACEXML/common/SAXExceptions.inl new file mode 100644 index 00000000000..8145b2d7ed4 --- /dev/null +++ b/ACE/ACEXML/common/SAXExceptions.inl @@ -0,0 +1,57 @@ +// -*- C++ -*- $Id$ + +ACEXML_INLINE const ACEXML_Char * +ACEXML_SAXException::message (void) const +{ + return (this->message_ == 0 ? + ACEXML_Exception::null_ : + this->message_); +} + +ACEXML_INLINE void +ACEXML_SAXException::_raise (void) +{ + throw *this; +} + +ACEXML_INLINE void +ACEXML_SAXNotSupportedException::_raise (void) +{ + throw *this; +} + +ACEXML_INLINE void +ACEXML_SAXNotRecognizedException::_raise (void) +{ + throw *this; +} + +ACEXML_INLINE void +ACEXML_SAXParseException::_raise (void) +{ + throw *this; +} + +ACEXML_INLINE const ACEXML_Char * +ACEXML_SAXException::id (void) const +{ + return ACEXML_SAXException::exception_name_; +} + +ACEXML_INLINE const ACEXML_Char * +ACEXML_SAXNotSupportedException::id (void) const +{ + return ACEXML_SAXNotSupportedException::exception_name_; +} + +ACEXML_INLINE const ACEXML_Char * +ACEXML_SAXNotRecognizedException::id (void) const +{ + return ACEXML_SAXNotRecognizedException::exception_name_; +} + +ACEXML_INLINE const ACEXML_Char * +ACEXML_SAXParseException::id (void) const +{ + return ACEXML_SAXParseException::exception_name_; +} |