コード例 #1
0
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;
}
コード例 #2
0
void ExceptionStore::setException(const Exception &e)
{
    if (hasException() == false)
        exceptionHolder = ExceptionHolder(e.clone());
}
コード例 #3
0
ファイル: Exception.cpp プロジェクト: Victorcasas/georest
Exception::Exception(const std::string& msg, const Exception& nested, int code): _msg(msg), _pNested(nested.clone()), _code(code)
{
}
コード例 #4
0
ファイル: TaskNotification.cpp プロジェクト: beneon/MITK
TaskFailedNotification::TaskFailedNotification(Task* pTask, const Exception& exc):
	TaskNotification(pTask),
	_pException(exc.clone())
{
}
コード例 #5
0
CMSException CMSExceptionSupport::create( const std::string& msg, const Exception& cause ) {

    CMSException exception( msg, cause.clone() );
    return exception;
}