Package org.axonframework.sample.app.api

Examples of org.axonframework.sample.app.api.ContactNameAlreadyTakenException


                contactId = UUID.randomUUID().toString();
            }
            Contact contact = new Contact(contactId, command.getNewContactName());
            repository.add(contact);
        } else {
            throw new ContactNameAlreadyTakenException(command.getNewContactName());
        }
    }
View Full Code Here


            Contact contact = repository.load(command.getContactId());
            contact.changeName(command.getContactNewName());

            cancelClaimedContactName(command.getContactId(), unitOfWork);
        } else {
            throw new ContactNameAlreadyTakenException(command.getContactNewName());
        }
    }
View Full Code Here

TOP

Related Classes of org.axonframework.sample.app.api.ContactNameAlreadyTakenException

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.