private String getStackTrace(AbstractEngineException data) {
        try (StringBuilderWriter writer = new StringBuilderWriter()) {
            data.printStackTrace(new PrintWriter(writer));
            return writer.getBuilder().toString();
        }
    }
Gets the full stack trace for the given exception and returns it as a
string.
@param data
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/api/RestExceptionMapper.java