} catch (InstantiationException ex) {
if (ruby.getDebug().isTrue()) ex.printStackTrace();
throw ruby.newTypeError("Could not instantiate " + cls.getCanonicalName() + " using " + prettyParams(constructor.getParameterTypes()));
} catch (IllegalAccessException ex) {
if (ruby.getDebug().isTrue()) ex.printStackTrace();
throw ruby.newTypeError("Could not instantiate " + cls.getCanonicalName() + " using " + prettyParams(constructor.getParameterTypes()));
} catch (IllegalArgumentException ex) {
if (ruby.getDebug().isTrue()) ex.printStackTrace();
throw ruby.newTypeError("Could not instantiate " + cls.getCanonicalName() + " using " + prettyParams(constructor.getParameterTypes()));
} catch (InvocationTargetException ex) {
if (ruby.getDebug().isTrue()) ex.printStackTrace();