private static String buildFullExceptionMessageHelper()

in src/main/java/software/amazon/cloudformation/resource/exceptions/ValidationException.java [128:141]


    private static String buildFullExceptionMessageHelper(final ValidationException e) {
        StringBuilder builder = new StringBuilder();
        final boolean isParentException = e.getKeyword() == null && e.getCausingExceptions() != null
            && !e.getCausingExceptions().isEmpty();
        if (!isParentException && e.getMessage() != null) {
            builder.append(e.getMessage() + "\n");
        }
        if (e.getCausingExceptions() != null) {
            for (ValidationException cause : e.getCausingExceptions()) {
                builder.append(buildFullExceptionMessageHelper(cause));
            }
        }
        return builder.toString();
    }