Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
pattern
FactoryException.cxx
Go to the documentation of this file.
1
/* -*- mode: c++ -*- */
2
14
#include "
FactoryException.h
"
15
16
namespace
hippodraw {
17
18
FactoryException::
19
FactoryException
(
const
FactoryException
& e )
20
: exception ()
21
{
22
m_type
= e.
m_type
;
23
}
24
25
FactoryException::
26
FactoryException
(
const
std::string &
type
)
27
{
28
m_type
=
type
;
29
}
30
31
FactoryException::
32
~FactoryException
( ) throw ()
33
{
34
}
35
36
char
const
*
37
FactoryException::
38
what
()
const
throw ()
39
{
40
std::string retval (
"No such type: `"
);
41
retval +=
m_type
;
42
retval +=
"' could be found in factory"
;
43
44
return
retval.c_str();
45
}
46
47
}
// namespace hippodraw
48
Generated for HippoDraw Class Library by