コード例 #1
0
ファイル: RFXComTCP.cpp プロジェクト: htlinux/domoticza
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
ファイル: log.cpp プロジェクト: uwydoc/the-practices
 void operator()(const std::exception& e) const
 {
     std::cerr << "std::exception: " << e.what() << '\n';
 }
コード例 #4
0
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();
}
コード例 #6
0
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());
}
コード例 #8
0
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();
}
コード例 #11
0
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() ));
}
コード例 #12
0
/*!
 * \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;
}
コード例 #13
0
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
ファイル: otserv.cpp プロジェクト: Codex-NG/tfs04full
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
ファイル: RFLinkTCP.cpp プロジェクト: sidepipe/domoticz
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;
}
コード例 #21
0
void
boost::throw_exception(std::exception const& ex)
{
    std::cout << ex.what() << std::endl;
    abort();
}
コード例 #22
0
ファイル: error.cpp プロジェクト: ImperatorPrime/xoreos
void StackException::add(const std::exception &e) {
	add("%s", e.what());
}
コード例 #23
0
 void OnFatalError(std::exception const& ex)
 {
     m_errors << "Fatal error: " << ex.what() << std::endl;
 }
コード例 #24
0
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());
}
コード例 #26
0
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
ファイル: test_main.cpp プロジェクト: kaidokert/weos
void throw_exception(const std::exception& e)
{
    printf("Throw exception %s\n", e.what());
    while (1);
}
コード例 #28
0
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
ファイル: assert_util.cpp プロジェクト: WeetLee/mongo
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());
}