示例#1
0
void RFXComTCP::OnError(const std::exception e)
{
	_log.Log(LOG_ERROR, "RFXCOM: Error: %s", e.what());
}
示例#2
0
void
AppExceptionHandler::handleExit( const std::exception &e )
{
    d_->log( "handleExit", e.what());
    exit(1);
}
示例#3
0
 void operator()(const std::exception& e) const
 {
     std::cerr << "std::exception: " << e.what() << '\n';
 }
void ThrowJavaException(JNIEnv* env, const std::exception& e)
{
    ThrowJavaException(env, std::string("Exception from libadblockplus: ") + e.what());
}
示例#5
0
void
AppExceptionHandler::handleThreadExit( const std::exception &e )
{
    d_->log( "handleThreadExit", e.what());
    Thread::exit();
}
void Display::Exeception(std::exception ex)
{
	Verbose::show("  Exception caught:", always);
	Verbose::show(std::string("\n  ") + ex.what() + "\n\n");
}
示例#7
0
文件: PVRClient.cpp 项目: denizt/xbmc
void CPVRClient::LogException(const std::exception &e, const char *strFunctionName) const
{
  CLog::Log(LOGERROR, "PVR - exception '%s' caught while trying to call '%s' on add-on '%s'. Please contact the developer of this add-on: %s", e.what(), strFunctionName, GetFriendlyName().c_str(), Author().c_str());
}
void handleException( const std::exception& e )
{
	std::cout << e.what() << std::endl;
}
示例#9
0
文件: halEvent.hpp 项目: OV2/Halite
	EventStdException(event_logger::eventLevel l, const std::exception& e, std::wstring from) :
		EventDetail(l, boost::posix_time::second_clock::universal_time(), event_logger::generalException),
		exception_(hal::from_utf8(e.what())),
		from_(from)
	{}
示例#10
0
void DiagnosticsDialog::exceptionMessage(const std::exception& e, const QString& context)
{
    pushMessage(MS_EXCEPTION, (context.isEmpty() ? "" : context + "\n\n" + QString::fromUtf8(e.what())));

    // error message is important, make sure the diagnostics are shown
    show();
}
void qlTimeSeriesDataReaderListenerImpl::on_std_exception( DDS::DataReader_ptr reader, timeseries::qlTimeSeries&, std::exception& e )
{
  ACE_ERROR((LM_WARNING,
             ACE_TEXT("(%P|%t) WARNING: ")
             ACE_TEXT("qlTimeSeriesDataReaderListenerImpl::on_std_exception %s\n"), e.what() ));
}
/*!
 * \brief handle exception throwed out
 * \param e the exception
 * \return the return value of API after exception is handled
 */
int XGBHandleException(const std::exception &e) {
  XGBSetGetLastError_(e.what());
  return -1;
}
void qlMTBrownianGeneratorFactoryDataReaderListenerImpl::on_std_exception( DDS::DataReader_ptr reader, browniangenerators::qlMTBrownianGeneratorFactory&, std::exception& e )
{
  ACE_ERROR((LM_WARNING,
             ACE_TEXT("(%P|%t) WARNING: ")
             ACE_TEXT("qlMTBrownianGeneratorFactoryDataReaderListenerImpl::on_std_exception %s\n"), e.what() ));
}
示例#14
0
文件: fail_policy.cpp 项目: fmrl/nyan
void fail_policy::operator()(const std::exception &fail_arg) const
{
   std::cerr << "# unexpected exception is unexpected. std::exception::what() says, \""
         << fail_arg.what() << ".\"\n";
}
示例#15
0
文件: Error.cpp 项目: Advi42/XCSoar
void
ShowError(const std::exception &exception, const TCHAR *caption)
{
  ShowMessageBox(UTF8ToWideConverter(exception.what()), caption,
                 MB_OK|MB_ICONEXCLAMATION);
}
示例#16
0
void boost::throw_exception(std::exception const& exp) {
	Output_::Error("exception: %s", exp.what());
}
示例#17
0
inline void boost::throw_exception(std::exception const & e)
{
	std::clog << "Boost exception: " << e.what() << std::endl;
}
示例#18
0
void StandardExceptionTranslator( const std::exception& e )
{
    BOOST_TEST_MESSAGE( e.what() );
}
示例#19
0
void CRFLinkTCP::OnError(const std::exception e)
{
    _log.Log(LOG_ERROR,"RFLink: Error: %s",e.what());
}
示例#20
0
void ctkPluginDatabaseException::setCause(const std::exception& cause) throw(std::logic_error)
{
  if (!cause.what()) throw std::logic_error("The cause for this ctkPluginDatabaseException instance is already set");

  this->cause = cause;
}
void
boost::throw_exception(std::exception const& ex)
{
    std::cout << ex.what() << std::endl;
    abort();
}
示例#22
0
void StackException::add(const std::exception &e) {
	add("%s", e.what());
}
 void OnFatalError(std::exception const& ex)
 {
     m_errors << "Fatal error: " << ex.what() << std::endl;
 }
void qlExponentialForwardCorrelationDataReaderListenerImpl::on_std_exception( DDS::DataReader_ptr reader, correlation::qlExponentialForwardCorrelation&, std::exception& e )
{
  ACE_ERROR((LM_WARNING,
             ACE_TEXT("(%P|%t) WARNING: ")
             ACE_TEXT("qlExponentialForwardCorrelationDataReaderListenerImpl::on_std_exception %s\n"), e.what() ));
}
示例#25
0
void
AppExceptionHandler::handleLogOnly( const std::exception &e )
{
    d_->log( "handleLogOnly", e.what());
}
void qlHistoricalRatesAnalysisDataReaderListenerImpl::on_std_exception( DDS::DataReader_ptr reader, correlation::qlHistoricalRatesAnalysis&, std::exception& e )
{
  ACE_ERROR((LM_WARNING,
             ACE_TEXT("(%P|%t) WARNING: ")
             ACE_TEXT("qlHistoricalRatesAnalysisDataReaderListenerImpl::on_std_exception %s\n"), e.what() ));
}
示例#27
0
void throw_exception(const std::exception& e)
{
    printf("Throw exception %s\n", e.what());
    while (1);
}
void qlMarketModelLmLinearExponentialCorrelationModelDataReaderListenerImpl::on_std_exception( DDS::DataReader_ptr reader, correlation::qlMarketModelLmLinearExponentialCorrelationModel&, std::exception& e )
{
  ACE_ERROR((LM_WARNING,
             ACE_TEXT("(%P|%t) WARNING: ")
             ACE_TEXT("qlMarketModelLmLinearExponentialCorrelationModelDataReaderListenerImpl::on_std_exception %s\n"), e.what() ));
}
示例#29
0
std::string causedBy(const std::exception& e) {
    return causedBy(e.what());
}
示例#30
0
文件: ErrorHandler.cpp 项目: 119/vdc
void ErrorHandler::exception(const std::exception& exc)
{
	poco_debugger_msg(exc.what());
}