class DefaultErrorListener implements ErrorListener {

    @Override
    public void onRepoInitUrlError(final Throwable error, final URL repoinitUrl) {
        final String message = MessageFormat.format(getString("repoinit url error ({0}): {1} \"{2}\""),
                String.valueOf(repoinitUrl), error.getClass().getName(), error.getMessage());
        LOGGER.trace("[onRepoInitUrlError] stack trace for: " + message, error);
        reportViolation(new SimpleViolation(Severity.MAJOR, message));
    }

}