// If call was refused we throw some exceptions or do nothing!
// It depends from given parameter eMode.
ERejectReasoneReason;
if(isCallRejected(eReason))
::osl::MutexGuardaAccessGuard(m_aAccessLock);
switch(m_eWorkingMode)
{
impl_throwExceptions(eMode,eReason);
caseE_INIT:
if(eMode==E_HARDEXCEPTIONS)
{
// Help programmer to find out, why this exception is thrown!
SAL_WARN("fwk","TransactionManager...: Owner instance not correctly initialized yet. Call was rejected! Normally it's an algorithm error ... wrong use of class!");
//ATTENTION: temp. disabled - till all bad code positions are detected and changed! */
// throw css::uno::RuntimeException( "TransactionManager...\nOwner instance not right initialized yet. Call was rejected! Normally it's an algorithm error... wrong using of class!\n", css::uno::Reference< css::uno::XInterface >() );
}
break;
caseE_WORK:
break;
caseE_BEFORECLOSE:
if(eMode==E_HARDEXCEPTIONS)
{
// Help programmer to find out, why this exception is thrown!
SAL_WARN("fwk","TransactionManager...: Owner instance stand in close method. Call was rejected!");
throwcss::lang::DisposedException("TransactionManager...\nOwner instance stand in close method. Call was rejected!");
}
break;
caseE_CLOSE:
// Help programmer to find out, why this exception is thrown!
SAL_WARN("fwk","TransactionManager...: Owner instance already closed. Call was rejected!");
throwcss::lang::DisposedException("TransactionManager...\nOwner instance already closed. Call was rejected!");
}
// BUT if no exception was thrown ... (may be eMode = E_SOFTEXCEPTIONS!)
// we must register this transaction too!
// Don't use "else" or a new scope here!!!
// Safe access to internal member.
::osl::MutexGuardaAccessGuard(m_aAccessLock);
// Register this new transaction.
// If it is the first one .. close gate to disable changing of working mode.
// Help programmer to find out, why this exception is thrown!
SAL_WARN("fwk","TransactionManager...: Owner instance not correctly initialized yet. Call was rejected! Normally it's an algorithm error ... wrong use of class!");
//ATTENTION: temp. disabled - till all bad code positions are detected and changed! */
// throw css::uno::RuntimeException( "TransactionManager...\nOwner instance not right initialized yet. Call was rejected! Normally it's an algorithm error... wrong using of class!\n", css::uno::Reference< css::uno::XInterface >() );
}
break;
caseE_INCLOSE:if(eMode==E_HARDEXCEPTIONS)
{
// Help programmer to find out, why this exception is thrown!
SAL_WARN("fwk","TransactionManager...: Owner instance stand in close method. Call was rejected!");
throwcss::lang::DisposedException("TransactionManager...\nOwner instance stand in close method. Call was rejected!");
}
break;
caseE_CLOSED:{
// Help programmer to find out, why this exception is thrown!
SAL_WARN("fwk","TransactionManager...: Owner instance already closed. Call was rejected!");
throwcss::lang::DisposedException("TransactionManager...\nOwner instance already closed. Call was rejected!");
}
caseE_NOREASON:{
// Help programmer to find out
SAL_WARN("fwk","TransactionManager...: Impossible case E_NOREASON!");