Throwing Exceptions?

Hey guys,
Is there a way to halt the execution, throw an exception?

let data = <Facebook>navParams.get('data');
if (!data) throw exception??

You could use return