Handler

by TheAnyLogicCompany

JavaScript

return simulation.getOutputs()
    .catch( error => {
        if( error.status == 404 ) {
            //custom handler code
            console.error( "Simulation results not found for these inputs" );
        }
        throw new Error( "Outputs not found for Server Capacity = " + parameterRange.value );
    });