Fix unable to throw Exception

Hello,

Any chance to merge this fix into master ?

Thanks !