Fix exception throw signatures