Bug 1072244 - Correctly throw the exceptions in TPS framework. r=hskupin DONTBUILD