MessageFormatException CMSExceptionSupport::createMessageFormatException( const Exception& cause ) { std::string msg = cause.getMessage(); if( msg.length() == 0 ) { msg = typeid( &cause ).name(); } MessageFormatException exception( msg, cause.clone() ); return exception; }
void ExceptionStore::setException(const Exception &e) { if (hasException() == false) exceptionHolder = ExceptionHolder(e.clone()); }
Exception::Exception(const std::string& msg, const Exception& nested, int code): _msg(msg), _pNested(nested.clone()), _code(code) { }
TaskFailedNotification::TaskFailedNotification(Task* pTask, const Exception& exc): TaskNotification(pTask), _pException(exc.clone()) { }
CMSException CMSExceptionSupport::create( const std::string& msg, const Exception& cause ) { CMSException exception( msg, cause.clone() ); return exception; }