//*****************************************************************************
// RCF - Remote Call Framework
// Copyright (c) 2005. All rights reserved.
// Developed by Jarl Lindrud.
// Contact: jlindrud@hotmail.com .
//*****************************************************************************
#include <RCF/Exception.hpp>
namespace RCF {
//******************************
// Exception
Exception::Exception(const std::string &msg) : std::runtime_error(""), msg(msg)
{}
Exception::~Exception() throw()
{}
const char *Exception::what() const throw()
{
return msg.c_str();
}
//******************************
// RemoteException
RemoteException::RemoteException(const std::string &remoteExceptionType, const std::string &remoteExceptionMsg)
{
msg = "Remote exception: Type: " + remoteExceptionType + ", Msg: " + remoteExceptionMsg;
}
RemoteException::~RemoteException() throw()
{}
const char *RemoteException::what() const throw()
{
return msg.c_str();
}
} // namespace RCF