Package com.arjuna.mw.wsas.exceptions

Examples of com.arjuna.mw.wsas.exceptions.WrongStateException


          throw new SystemException(ex.toString());
        }
      }
    }
    else
      throw new WrongStateException();
  }
View Full Code Here


  {
    if (act == null) throw new InvalidParticipantException();

    AbstractRecord rec = new ParticipantRecord(act, new Uid());

    if (add(rec) != AddOutcome.AR_ADDED) throw new WrongStateException();
    else
    {
      /*
       * Presume nothing protocol, so we need to write the intentions list
       * every time a participant is added.
View Full Code Here

              .getString("com.arjuna.mwlabs.wscf.model.sagas.arjunacore.ACCoordinator_2"));

    if (status() == ActionStatus.RUNNING) changeParticipantStatus(
        participantId, DELISTED);
    else
      throw new WrongStateException();
  }
View Full Code Here

              .getString("com.arjuna.mwlabs.wscf.model.sagas.arjunacore.ACCoordinator_2"));

    if (status() == ActionStatus.RUNNING) changeParticipantStatus(
        participantId, COMPLETED);
    else
      throw new WrongStateException();
  }
View Full Code Here

    public void delist (Participant participant) throws InvalidTransactionException, NoTransactionException, InvalidParticipantException, WrongStateException, SystemException
    {
  // TODO: support it!

  throw new WrongStateException();
    }
View Full Code Here

     * @exception SystemException Thrown if any other error occurs.
     */

    public void removeSynchronization (Synchronization participant) throws SystemException, InvalidTransactionException, NoTransactionException, InvalidSynchronizationException, WrongStateException
    {
  throw new WrongStateException();
    }
View Full Code Here

        _resource.commit();
      }
      // catch (com.arjuna.mw.wst.exceptions.WrongStateException ex)
      catch (com.arjuna.wst.WrongStateException ex)
      {
        throw new WrongStateException(ex.toString());
      }
      /*
       * catch (com.arjuna.mw.wst.exceptions.HeuristicHazardException ex) {
       * throw new HeuristicHazardException(ex.toString()); } catch
       * (com.arjuna.mw.wst.exceptions.HeuristicMixedException ex) { throw
View Full Code Here

        _resource.rollback();
      }
      // catch (com.arjuna.mw.wst.exceptions.WrongStateException ex)
      catch (com.arjuna.wst.WrongStateException ex)
      {
        throw new WrongStateException(ex.toString());
      }
      /*
       * catch (com.arjuna.mw.wst.exceptions.HeuristicHazardException ex) {
       * throw new HeuristicHazardException(ex.toString()); } catch
       * (com.arjuna.mw.wst.exceptions.HeuristicMixedException ex) { throw
View Full Code Here

        return new VoteCancel();
    }
    //  catch (com.arjuna.mw.wst.exceptions.WrongStateException ex)
    catch (com.arjuna.wst.WrongStateException ex)
    {
      throw new WrongStateException(ex.toString());
    }
    /*
     * catch (com.arjuna.mw.wst.exceptions.HeuristicHazardException ex {
     * throw new HeuristicHazardException(ex.toString()); } catch
     * (com.arjuna.mw.wst.exceptions.HeuristicMixedException ex) { throw new
View Full Code Here

        }
      }
      //      catch (com.arjuna.mw.wst.exceptions.WrongStateException ex)
      catch (com.arjuna.wst.WrongStateException ex)
      {
        throw new WrongStateException(ex.toString());
      }
      /*
       * catch (com.arjuna.mw.wst.exceptions.HeuristicHazardException ex) {
       * throw new HeuristicHazardException(ex.toString()); } catch
       * (com.arjuna.mw.wst.exceptions.HeuristicMixedException ex) { throw
View Full Code Here

TOP

Related Classes of com.arjuna.mw.wsas.exceptions.WrongStateException

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.