YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Exception.cpp
Go to the documentation of this file.
1
#include "
YAPOG/System/Error/Exception.hpp
"
2
3
namespace
yap
4
{
5
Exception::Exception
(
const
String
& message)
6
: std::exception ()
7
, message_ (message)
8
{
9
}
10
11
Exception::~Exception
() throw ()
12
{
13
}
14
15
Exception::Exception
(
const
Exception
& copy)
16
: std::exception (copy)
17
, message_ (copy.message_)
18
{
19
}
20
21
Exception
&
Exception::operator=
(
const
Exception
& copy)
22
{
23
if
(
this
== ©)
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
YAPOG
src
YAPOG
System
Error
Exception.cpp
Generated on Mon Sep 17 2012 22:24:26 for YAPOG by
1.8.1.1