*/
#include "MessagePortManager.h"
-
#include "MessagePortManagerProxy.h"
+#include <Logger.h>
namespace DeviceAPI {
namespace MessagePort {
void MessagePortManager::OnRequestReceived(const EventMessagePortManagerRequestLocalMessagePortPtr &event)
{
- LogDebug("entered");
+ LoggerD("entered");
Try
{
}
Catch(InvalidArgumentException)
{
- LogError("Error [InvalidArgumentException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [InvalidArgumentException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::InvalidArgumentException);
event->setResult(false);
}
Catch(PlatformException)
{
- LogError("Error [PlatformException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [PlatformException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::PlatformException);
event->setResult(false);
}
Catch(Exception)
{
- LogError("Error [UnknownException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [UnknownException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::UnknownException);
event->setResult(false);
}
void MessagePortManager::OnRequestReceived(const EventMessagePortManagerRequestTrustedLocalMessagePortPtr &event)
{
- LogDebug("entered");
+ LoggerD("entered");
Try
{
}
Catch(InvalidArgumentException)
{
- LogError("Error [InvalidArgumentException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [InvalidArgumentException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::InvalidArgumentException);
event->setResult(false);
}
Catch(PlatformException)
{
- LogError("Error [PlatformException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [PlatformException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::PlatformException);
event->setResult(false);
}
Catch(Exception)
{
- LogError("Error [UnknownException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [UnknownException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::UnknownException);
event->setResult(false);
}
void MessagePortManager::OnRequestReceived(const EventMessagePortManagerRequestRemoteMessagePortPtr &event)
{
- LogDebug("entered");
+ LoggerD("entered");
Try
{
}
Catch(InvalidArgumentException)
{
- LogError("Error [InvalidArgumentException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [InvalidArgumentException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::InvalidArgumentException);
event->setResult(false);
}
Catch(NotFoundException)
{
- LogError("Error [NotFoundException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [NotFoundException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::NotFoundException);
event->setResult(false);
}
Catch(PlatformException)
{
- LogError("Error [PlatformException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [PlatformException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::PlatformException);
event->setResult(false);
}
Catch(Exception)
{
- LogError("Error [UnknownException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [UnknownException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::UnknownException);
event->setResult(false);
}
void MessagePortManager::OnRequestReceived(const EventMessagePortManagerRequestTrustedRemoteMessagePortPtr &event)
{
- LogDebug("entered");
+ LoggerD("entered");
Try
{
}
Catch(InvalidArgumentException)
{
- LogError("Error [InvalidArgumentException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [InvalidArgumentException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::InvalidArgumentException);
event->setResult(false);
}
Catch(NotFoundException)
{
- LogError("Error [NotFoundException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [NotFoundException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::NotFoundException);
event->setResult(false);
}
Catch(PlatformWrongStateException)
{
- LogError("Error [PlatformWrongStateException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [PlatformWrongStateException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::PlatformWrongStateException);
event->setResult(false);
}
Catch(PlatformException)
{
- LogError("Error [PlatformException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [PlatformException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::PlatformException);
event->setResult(false);
}
Catch(Exception)
{
- LogError("Error [UnknownException] : " << _rethrown_exception.GetMessage());
+ LoggerE("Error [UnknownException] : " << _rethrown_exception.GetMessage());
event->setExceptionCode(ExceptionCodes::UnknownException);
event->setResult(false);
}