示例#1
0
Transaction::~Transaction()
{
	try
	{
		if (_rSession.isTransaction())
		{
			try
			{
				if (_pLogger) 
					_pLogger->debug("Rolling back transaction.");

				_rSession.rollback();
			}
			catch (...)
			{
				if (_pLogger) 
					_pLogger->error("Error while rolling back database transaction.");
			}
		}
	}
	catch (...)
	{
		poco_unexpected();
	}
}
WebEventNotifierRemoteObject::~WebEventNotifierRemoteObject()
{
	try
	{
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#3
0
文件: Logger.cpp 项目: Kampbell/poco
	~AutoLoggerShutdown()
	{
		try
		{
			Logger::shutdown();
		}
		catch (...)
		{
			poco_unexpected();
		}
	}
PrivateKeyPassphraseHandler::~PrivateKeyPassphraseHandler()
{
	try
	{
		SSLManager::instance().PrivateKeyPassphraseRequired -= Delegate<PrivateKeyPassphraseHandler, std::string>(this, &PrivateKeyPassphraseHandler::onPrivateKeyRequested);
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#5
0
SerialPort::~SerialPort()
{
	try
	{
		close();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#6
0
OpenSSLInitializer::~OpenSSLInitializer()
{
	try
	{
		uninitialize();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#7
0
SessionPool::~SessionPool()
{
	try
	{
		shutdown();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#8
0
SessionImpl::~SessionImpl()
{
	try
	{
		close();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#9
0
IORemoteObject::~IORemoteObject()
{
	try
	{
		_pServiceObject->stateChanged -= Poco::delegate(this, &IORemoteObject::event__stateChanged);
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#10
0
Timer::~Timer()
{
	try
	{
		stop();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#11
0
ThreadPool::~ThreadPool()
{
	try
	{
		stopAll();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
PriorityNotificationQueue::~PriorityNotificationQueue()
{
	try
	{
		clear();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
void HTTPFixedLengthOutputStream::operator delete(void* ptr)
{
	try
	{
		_pool.release(ptr);
	}
	catch (...)
	{
		poco_unexpected();
	}
}
AccelerometerRemoteObject::~AccelerometerRemoteObject()
{
	try
	{
		_pServiceObject->accelerationUpdate -= Poco::delegate(this, &AccelerometerRemoteObject::event__accelerationUpdate);
	}
	catch (...)
	{
		poco_unexpected();
	}
}
AccelerometerEventDispatcher::~AccelerometerEventDispatcher()
{
	try
	{
		_pRemoteObject->accelerationUpdate -= Poco::delegate(this, &AccelerometerEventDispatcher::event__accelerationUpdate);
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#16
0
文件: Decompress.cpp 项目: 12307/poco
Decompress::~Decompress()
{
	try
	{
		EOk -= Poco::Delegate<Decompress, std::pair<const ZipLocalFileHeader, const Poco::Path> >(this, &Decompress::onOk);
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#17
0
SensorServerHelper::~SensorServerHelper()
{
	try
	{
		_pORB->unregisterSkeleton("Sensor", true);
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#18
0
SplitterChannel::~SplitterChannel()
{
	try
	{
		close();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#19
0
HTTPServerConnection::~HTTPServerConnection()
{
	try
	{
		_pFactory->serverStopped -= Poco::delegate(this, &HTTPServerConnection::onServerStopped);
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#20
0
RemoteSyslogChannel::~RemoteSyslogChannel()
{
    try
    {
        close();
    }
    catch (...)
    {
        poco_unexpected();
    }
}
示例#21
0
WeakPersistentWrapperRegistry::~WeakPersistentWrapperRegistry()
{
	try
	{
		cleanup();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#22
0
EventLogChannel::~EventLogChannel()
{
	try
	{
		close();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
SQLiteStatementImpl::~SQLiteStatementImpl()
{
	try
	{
		clear();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#24
0
SSLManager::~SSLManager()
{
	try
	{
		shutdown();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#25
0
SimpleFileChannel::~SimpleFileChannel()
{
	try
	{
		close();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#26
0
文件: Notifier.cpp 项目: 12307/poco
Notifier::~Notifier()
{
	try
	{
		disableAll();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#27
0
TimedNotificationQueue::~TimedNotificationQueue()
{
	try
	{
		clear();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#28
0
文件: Preparator.cpp 项目: 12307/poco
Preparator::~Preparator()
{
	try
	{
		freeMemory();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#29
0
Timer::~Timer()
{
	try
	{
		_queue.enqueueNotification(new StopNotification(_queue), Poco::Clock(0));
		_thread.join();
	}
	catch (...)
	{
		poco_unexpected();
	}
}
示例#30
0
LocalPortForwarder::~LocalPortForwarder()
{
	try
	{
		_tcpServer.stop();
		_pDispatcher->stop();
	}
	catch (...)
	{
		poco_unexpected();
	}
}