removing java7 ctor usage of runtimeexception