Examples of CannotCreateHandlingEventException


Examples of org.qi4j.sample.dcicargo.sample_b.data.factory.exception.CannotCreateHandlingEventException

        )
            throws CannotCreateHandlingEventException
        {
            if( voyage == null && handlingEventType.requiresVoyage() )
            {
                throw new CannotCreateHandlingEventException( "Voyage is required for handling event type " + handlingEventType );
            }

            else if( voyage != null && handlingEventType.prohibitsVoyage() )
            {
                throw new CannotCreateHandlingEventException( "Voyage is not allowed with handling event type " + handlingEventType );
            }

            UnitOfWork uow = uowf.currentUnitOfWork();
            EntityBuilder<HandlingEvent> handlingEventBuilder = uow.newEntityBuilder( HandlingEvent.class );
            handlingEventBuilder.instance().registrationTime().set( registrationTime );
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.