@Override
    protected boolean execute(
            CtClass inputClass,
            String inputClassName,
            CtConstructor initializer)
            throws CannotCompileException, NotFoundException {
        String target = getTarget();

        ClassUtils.newInitializerDelegate(
                classPool,
                inputClass,
                initializer,
                (source, result) -> {
                    String statement = "try{"
                            + source +
                            "} catch (" + getException() + " e) {"
                            + target.replace("$e", "e")
                            + "}";
                    statement = getReplaceStatement(inputClassName, initializer, true, statement);
                    return statement;
                }
        );

        Logger.warning(getPrettyName() + " add catch for constructor exec by: " + target
                + " at " + inputClassName + ".java" + ":" + initializer.getName());
        return true;
    }
Transform that wraps initializer-execute with try-catch.
plugin/src/main/groovy/com/didichuxing/tools/droidassist/transform/enhance/InitializerExecutionTryCatchTransformer.java