#include <Commons/Exception.h>
#include "Manager.h"
#include "Node.h"
+#include <Logger.h>
using namespace WrtDeviceApis;
using namespace WrtDeviceApis::Commons;
checkForWriting();
if (!(m_stream << arg)) {
- LogError("Error while writing to the stream.");
+ LoggerE("Error while writing to the stream.");
ThrowMsg(Commons::PlatformException,
"Error while writing to the stream.");
}
void Stream::checkForWriting() const
{
if (!isOpen()) {
- LogError("Stream is closed.");
+ LoggerE("Stream is closed.");
ThrowMsg(Commons::PlatformException, "Stream is closed.");
}
if (!isWriteable()) {
- LogError("Stream is not writeable.");
+ LoggerE("Stream is not writeable.");
ThrowMsg(Commons::PlatformException, "Stream is not writeable.");
}
}