Changed exception raising for jython 2.5 build