throw coffeescript exception when needed