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
19namespace Poco {
20namespace XML {
21
22
23EventException::EventException(int code):
24 XMLException("Unspecified event type")
25{
26}
27
28
29EventException::EventException(const EventException& exc):
30 XMLException(exc)
31{
32}
33
34
35EventException::~EventException() throw()
36{
37}
38
39
40EventException& EventException::operator = (const EventException& exc)
41{
42 XMLException::operator = (exc);
43 return *this;
44}
45
46
47const char* EventException::name() const throw()
48{
49 return "EventException";
50}
51
52
53const char* EventException::className() const throw()
54{
55 return typeid(*this).name();
56}
57
58
59Poco::Exception* EventException::clone() const
60{
61 return new EventException(*this);
62}
63
64
65} } // namespace Poco::XML
66