Try catch compiler issue

Hi. im trying to use this part of code given in cor topics.

function onPress(clickEvent as ClickEvent) as Boolean {
    if ((mComplicationId != null) &&
         isClickInside(clickEvent, mBoundingBox)) {

        // launch the app that published the
        // complication
        try {
            Complications.exitTo(mComplicationId);
            return true;
        } catch (e as AppNotInstalledException) {
            // fall through
        }
    }

    return false;
}

However it seems the Try{} element thrown the following error

ERROR: epix2pro42mm: C:\Users\Bastos\eclipse-workspace\FusionV4\Fusion_V4\source\Fusion_V4View.mc:52,20: no viable alternative at input 'try{Complications.exitTo(fields[i].fieldData.complicationId);returntrue;}

any idea? Maybe missed some import?

Thanks for advices.