Examples of SpecException


Examples of com.bazaarvoice.jolt.exception.SpecException

     * @param chainrSpec Plain vanilla hydrated JSON representation of a Chainr spec .json file.
     */
    public ChainrSpec( Object chainrSpec ) {

        if ( !( chainrSpec instanceof List ) ) {
            throw new SpecException"JOLT Chainr expects a JSON array of objects - Malformed spec." );
        }

        @SuppressWarnings( "unchecked" ) // We know its a list due to the check above
        List<Object> operations = (List<Object>) chainrSpec;

        if ( operations.isEmpty() ) {
            throw new SpecException( "JOLT Chainr passed an empty JSON array.");
        }

        List<ChainrEntry> entries = new ArrayList<ChainrEntry>(operations.size());

        for ( int index = 0; index < operations.size(); index++ ) {
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.