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