Calls to the grammar rule translator must throw different exception terms in case of error depending on the calling context