modify thrown exception