Code example for InvocationTargetException

Methods: getTargetException

0
        } catch (InstantiationException e) {
            throw new CucumberException(e);
        } catch (IllegalAccessException e) {
            throw new CucumberException(e);
        } catch (InvocationTargetException e) {
            throw new CucumberException(e.getTargetException());
        } 
    } 
 
    @Override 
    public boolean canConvert(Class type) {
        return ctor.getDeclaringClass().equals(type);
    } 
 
}