public void cancel () throws CancelFailedException, InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.cancel(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.FaultedException ex) { // we can see this in 1.1 throw new CancelFailedException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
public void cancel () throws CancelFailedException, InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.cancel(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.FaultedException ex) { // we can see this in 1.1 throw new CancelFailedException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
public void cancel () throws CancelFailedException, InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.cancel(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.FaultedException ex) { // we can see this in 1.1 throw new CancelFailedException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }