Package npanday.vendor

Examples of npanday.vendor.IllegalStateException


    {
        VendorInfoState startState = VendorInfoState.START.getState( vendorInfo );
        VendorInfoTransitionRule rule = transitionRules.get( startState );
        if ( rule == null )
        {
            throw new IllegalStateException(
                "NPANDAY-102-002: Could not find rule for state: State = " + startState.name() );
        }
        for ( VendorInfoState state = VendorInfoState.START; !state.equals( VendorInfoState.EXIT ); )
        {
            logger.debug( "NPANDAY-102-003: Apply rule:" + rule );
            state = rule.process( vendorInfo );
            logger.debug( "NPANDAY-102-004: Vendor info after rule:" + vendorInfo );
            rule = transitionRules.get( state );
            if ( rule == null && !state.equals( VendorInfoState.EXIT ) )
            {
                throw new IllegalStateException(
                    "NPANDAY-102-005: Could not find rule for state: State = " + state.name() );
            }
        }
    }
View Full Code Here

TOP

Related Classes of npanday.vendor.IllegalStateException

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.