YAPOG  0.0.1
Yet Another Pokemon Online Game
Exception.cpp
Go to the documentation of this file.
2 
3 namespace yap
4 {
5  Exception::Exception (const String& message)
6  : std::exception ()
7  , message_ (message)
8  {
9  }
10 
12  {
13  }
14 
16  : std::exception (copy)
17  , message_ (copy.message_)
18  {
19  }
20 
22  {
23  if (this == &copy)
24  return *this;
25 
26  message_ = copy.message_;
27 
28  return *this;
29  }
30 
31  OStream& Exception::GetMessage (OStream& oStream) const throw ()
32  {
33  oStream << message_;
34 
35  return oStream;
36  }
37 } // namespace yap