Removing JError, using Exception instead