Examples of AlreadyRegisteredException


Examples of com.arjuna.wsc.AlreadyRegisteredException

    public EndpointReferenceType register(EndpointReferenceType participantProtocolService, String protocolIdentifier, InstanceIdentifier instanceIdentifier)
        throws AlreadyRegisteredException, InvalidProtocolException, InvalidStateException, NoActivityException
    {
        if (protocolIdentifier.equals(TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER))
            throw new AlreadyRegisteredException();
        else if (protocolIdentifier.equals(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER))
            throw new InvalidProtocolException();
        else if (protocolIdentifier.equals(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER))
            throw new InvalidStateException();
        else if (protocolIdentifier.equals(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER))
View Full Code Here

Examples of com.arjuna.wsc.AlreadyRegisteredException

    public W3CEndpointReference register(W3CEndpointReference participantProtocolService, String protocolIdentifier, InstanceIdentifier instanceIdentifier, boolean isSecure)
        throws AlreadyRegisteredException, InvalidProtocolException, InvalidStateException, NoActivityException
    {
        if (protocolIdentifier.equals(TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER))
            throw new AlreadyRegisteredException();
        else if (protocolIdentifier.equals(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER))
            throw new InvalidProtocolException();
        else if (protocolIdentifier.equals(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER))
            throw new InvalidStateException();
        else if (protocolIdentifier.equals(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER))
View Full Code Here

Examples of com.arjuna.wsc.AlreadyRegisteredException

            // TODO -- work out which faults we should really throw. in particular do we need to retain SoapFault
            final SOAPFault soapFault = sfe.getFault() ;
            final QName subcode = soapFault.getFaultCodeAsQName() ;
            if (CoordinationConstants.WSCOOR_ERROR_CODE_ALREADY_REGISTERED_QNAME.equals(subcode))
            {
                throw new AlreadyRegisteredException(soapFault.getFaultString()) ;
            }
            else if (CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PROTOCOL_QNAME.equals(subcode))
            {
                throw new InvalidProtocolException(soapFault.getFaultString()) ;
            }
View Full Code Here

Examples of com.arjuna.wsc.AlreadyRegisteredException

    public EndpointReferenceType register(EndpointReferenceType participantProtocolService, String protocolIdentifier, InstanceIdentifier instanceIdentifier)
        throws AlreadyRegisteredException, InvalidProtocolException, InvalidStateException, NoActivityException
    {
        if (protocolIdentifier.equals(TestUtil.ALREADY_REGISTERED_PROTOCOL_IDENTIFIER))
            throw new AlreadyRegisteredException();
        else if (protocolIdentifier.equals(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER))
            throw new InvalidProtocolException();
        else if (protocolIdentifier.equals(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER))
            throw new InvalidStateException();
        else if (protocolIdentifier.equals(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER))
View Full Code Here

Examples of com.palmergames.bukkit.towny.AlreadyRegisteredException

      }


        public void addAlly(Nation nation) throws AlreadyRegisteredException {
                if (hasAlly(nation))
                        throw new AlreadyRegisteredException();
                else {
                        try {
                                removeEnemy(nation);
                        } catch (NotRegisteredException e) {
                        }
View Full Code Here

Examples of com.palmergames.bukkit.towny.AlreadyRegisteredException

                return getAllies().contains(nation);
        }

        public void addEnemy(Nation nation) throws AlreadyRegisteredException {
                if (hasEnemy(nation))
                        throw new AlreadyRegisteredException();
                else {
                        try {
                                removeAlly(nation);
                        } catch (NotRegisteredException e) {
                        }
View Full Code Here

Examples of com.palmergames.bukkit.towny.AlreadyRegisteredException

                return towns.contains(town);
        }

        public void addTown(Town town) throws AlreadyRegisteredException {
                if (hasTown(town))
                        throw new AlreadyRegisteredException();
                else if (town.hasNation())
                        throw new AlreadyRegisteredException();
                else {
                        towns.add(town);
                        town.setNation(this);
                }
        }
View Full Code Here

Examples of com.palmergames.bukkit.towny.AlreadyRegisteredException

                }
        }

        public void addAssistant(Resident resident) throws AlreadyRegisteredException {
                if (hasAssistant(resident))
                        throw new AlreadyRegisteredException();
                else
                        getAssistants().add(resident);
        }
View Full Code Here

Examples of com.palmergames.bukkit.towny.AlreadyRegisteredException

                return townBlocks.contains(townBlock);
        }

        public void addTownBlock(TownBlock townBlock) throws AlreadyRegisteredException {
                if (hasTownBlock(townBlock))
                        throw new AlreadyRegisteredException();
                else
                        townBlocks.add(townBlock);
        }
View Full Code Here

Examples of com.palmergames.bukkit.towny.AlreadyRegisteredException

            TownyUniverse.getDataSource().saveTownBlock(townBlock);

            return true;
          } else {
            //Should never reach here.
            throw new AlreadyRegisteredException(String.format(TownySettings.getLangString("msg_already_claimed"), owner.getName()));
          }
               
        } catch (NotRegisteredException e) {
          //Plot has no owner so it's the town selling it
          TownyMessaging.sendMsg(player, String.format("6) %s", worldCoord.toString()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.