Package com.arjuna.mw.wstx.exceptions

Examples of com.arjuna.mw.wstx.exceptions.HeuristicHazardException


  {
      throw ex;
  }
  catch (ProtocolViolationException ex)
  {
      throw new HeuristicHazardException(ex.toString());
  }
  catch (NoActivityException ex)
  {
      throw new NoTransactionException();
  }
View Full Code Here


  {
      throw ex;
  }
  catch (ProtocolViolationException ex)
  {
      throw new HeuristicHazardException(ex.toString());
  }
  catch (NoActivityException ex)
  {
      throw new NoTransactionException();
  }
View Full Code Here

    throw new TransactionRolledBackException();
      }
  }
  catch (SystemException ex)
  {
      throw new HeuristicHazardException();
  }

  if (out instanceof CoordinationOutcome)
  {
      int res = ((CoordinationOutcome) out).result();

      switch (res)
      {
      case TwoPhaseResult.CANCELLED:
      case TwoPhaseResult.HEURISTIC_CANCEL:
    {
        if (commit)
      throw new TransactionRolledBackException();
    }
    break;
      case TwoPhaseResult.CONFIRMED:
      case TwoPhaseResult.HEURISTIC_CONFIRM:
    {
        if (!commit)
      throw new TransactionCommittedException();
    }
    break;
      case TwoPhaseResult.HEURISTIC_MIXED:
    throw new HeuristicMixedException();
      case TwoPhaseResult.HEURISTIC_HAZARD:
    throw new HeuristicHazardException();
      case TwoPhaseResult.FINISH_OK:
    break;
      case TwoPhaseResult.FINISH_ERROR:
      default:
    throw new HeuristicHazardException();
      }
  }
  else
      throw new HeuristicHazardException(wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wstx11.model.as.twophase.UserTwoPhaseTx_3"));
    }
View Full Code Here

  {
      throw ex;
  }
  catch (ProtocolViolationException ex)
  {
      throw new HeuristicHazardException(ex.toString());
  }
  catch (NoActivityException ex)
  {
      throw new NoTransactionException();
  }
View Full Code Here

  {
      throw ex;
  }
  catch (ProtocolViolationException ex)
  {
      throw new HeuristicHazardException(ex.toString());
  }
  catch (NoActivityException ex)
  {
      throw new NoTransactionException();
  }
View Full Code Here

    throw new TransactionRolledBackException();
      }
  }
  catch (SystemException ex)
  {
      throw new HeuristicHazardException();
  }
 
  if (out instanceof CoordinationOutcome)
  {
      int res = ((CoordinationOutcome) out).result();

      switch (res)
      {
      case TwoPhaseResult.CANCELLED:
      case TwoPhaseResult.HEURISTIC_CANCEL:
    {
        if (commit)
      throw new TransactionRolledBackException();
    }
    break;
      case TwoPhaseResult.CONFIRMED:
      case TwoPhaseResult.HEURISTIC_CONFIRM:
    {
        if (!commit)
      throw new TransactionCommittedException();
    }
    break;
      case TwoPhaseResult.HEURISTIC_MIXED:
    throw new HeuristicMixedException();
      case TwoPhaseResult.HEURISTIC_HAZARD:
    throw new HeuristicHazardException();
      case TwoPhaseResult.FINISH_OK:
    break;
      case TwoPhaseResult.FINISH_ERROR:
      default:
    throw new HeuristicHazardException();
      }
  }
  else
      throw new HeuristicHazardException(wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wstx.model.as.twophase.UserTwoPhaseTx_3"));
    }
View Full Code Here

  {
      throw ex;
  }
  catch (ProtocolViolationException ex)
  {
      throw new HeuristicHazardException(ex.toString());
  }
  catch (NoActivityException ex)
  {
      throw new NoTransactionException();
  }
View Full Code Here

  {
      throw ex;
  }
  catch (ProtocolViolationException ex)
  {
      throw new HeuristicHazardException(ex.toString());
  }
  catch (NoActivityException ex)
  {
      throw new NoTransactionException();
  }
View Full Code Here

    throw new TransactionRolledBackException();
      }
  }
  catch (SystemException ex)
  {
      throw new HeuristicHazardException();
  }
 
  if (out instanceof CoordinationOutcome)
  {
      int res = ((CoordinationOutcome) out).result();

      switch (res)
      {
      case TwoPhaseResult.CANCELLED:
      case TwoPhaseResult.HEURISTIC_CANCEL:
    {
        if (commit)
      throw new TransactionRolledBackException();
    }
    break;
      case TwoPhaseResult.CONFIRMED:
      case TwoPhaseResult.HEURISTIC_CONFIRM:
    {
        if (!commit)
      throw new TransactionCommittedException();
    }
    break;
      case TwoPhaseResult.HEURISTIC_MIXED:
    throw new HeuristicMixedException();
      case TwoPhaseResult.HEURISTIC_HAZARD:
    throw new HeuristicHazardException();
      case TwoPhaseResult.FINISH_OK:
    break;
      case TwoPhaseResult.FINISH_ERROR:
      default:
    throw new HeuristicHazardException();
      }
  }
  else
      throw new HeuristicHazardException(wstxLogger.log_mesg.getString("com.arjuna.mwlabs.wstx.model.as.twophase.UserTwoPhaseTx_3"));
    }
View Full Code Here

TOP

Related Classes of com.arjuna.mw.wstx.exceptions.HeuristicHazardException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.