/// <reference path="bonziri.impl.ts" />
//'use strict'
 
namespace Bonziri {

    export function generateScenario(jsonText: string): Scenario {
        return Impl.generateScenario(jsonText);
    }

}


/// <reference path="bonziri.impl.ts" />
//'use strict'
 
namespace Bonziri {

    export function generateScenario(jsonText: string): Scenario {
        try {
            return Impl.generateScenario(jsonText);
        } catch (e) {
            alert(e);
            throw e;
        }
    }

}


Add try-catch statement in Bonziri decoding
Add try-catch statement in Bonziri decoding
