| 1 | // | 
|---|---|
| 2 | // EventException.cpp | 
| 3 | // | 
| 4 | // Library: XML | 
| 5 | // Package: DOM | 
| 6 | // Module: DOMEvents | 
| 7 | // | 
| 8 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. | 
| 9 | // and Contributors. | 
| 10 | // | 
| 11 | // SPDX-License-Identifier: BSL-1.0 | 
| 12 | // | 
| 13 | |
| 14 | |
| 15 | #include "Poco/DOM/EventException.h" | 
| 16 | #include <typeinfo> | 
| 17 | |
| 18 | |
| 19 | namespace Poco { | 
| 20 | namespace XML { | 
| 21 | |
| 22 | |
| 23 | EventException::EventException(int code): | 
| 24 | XMLException( "Unspecified event type", code) | 
| 25 | { | 
| 26 | } | 
| 27 | |
| 28 | |
| 29 | EventException::EventException(const EventException& exc): | 
| 30 | XMLException(exc) | 
| 31 | { | 
| 32 | } | 
| 33 | |
| 34 | |
| 35 | EventException::~EventException() throw() | 
| 36 | { | 
| 37 | } | 
| 38 | |
| 39 | |
| 40 | EventException& EventException::operator = (const EventException& exc) | 
| 41 | { | 
| 42 | XMLException::operator = (exc); | 
| 43 | return *this; | 
| 44 | } | 
| 45 | |
| 46 | |
| 47 | const char* EventException::name() const throw() | 
| 48 | { | 
| 49 | return "EventException"; | 
| 50 | } | 
| 51 | |
| 52 | |
| 53 | const char* EventException::className() const throw() | 
| 54 | { | 
| 55 | return typeid(*this).name(); | 
| 56 | } | 
| 57 | |
| 58 | |
| 59 | Poco::Exception* EventException::clone() const | 
| 60 | { | 
| 61 | return new EventException(*this); | 
| 62 | } | 
| 63 | |
| 64 | |
| 65 | } } // namespace Poco::XML | 
| 66 | 
