2018-05-24 00:58:16 +08:00
|
|
|
#include "..\e2dcustom.h"
|
|
|
|
|
|
|
|
|
|
|
2018-07-06 12:59:32 +08:00
|
|
|
e2d::Exception::Exception() E2D_NOEXCEPT
|
2018-05-24 00:58:16 +08:00
|
|
|
: _message()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-15 00:06:03 +08:00
|
|
|
e2d::Exception::Exception(const char * message) E2D_NOEXCEPT
|
2018-05-24 00:58:16 +08:00
|
|
|
: _message(message)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-06 12:59:32 +08:00
|
|
|
e2d::Exception::Exception(Exception const& other) E2D_NOEXCEPT
|
2018-05-24 00:58:16 +08:00
|
|
|
: _message(other._message)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-06 12:59:32 +08:00
|
|
|
e2d::Exception& e2d::Exception::operator=(Exception const& other) E2D_NOEXCEPT
|
2018-05-24 00:58:16 +08:00
|
|
|
{
|
|
|
|
|
if (this == &other)
|
|
|
|
|
{
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_message = other._message;
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-06 12:59:32 +08:00
|
|
|
e2d::Exception::~Exception() E2D_NOEXCEPT
|
2018-05-24 00:58:16 +08:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-15 00:06:03 +08:00
|
|
|
const char * e2d::Exception::msg() const
|
2018-05-24 00:58:16 +08:00
|
|
|
{
|
|
|
|
|
return _message;
|
|
|
|
|
}
|