class DefaultErrorListener implements ErrorListener {

    @Override
    public void onListenerPathException(final Exception error, final ProgressCheck handler,
                                        final PackageId packageId, final String path) {
        final String message = MessageFormat.format(getString("{0} - Listener error: {1} \"{2}\""),
                path, error.getClass().getName(), error.getMessage());
        LOGGER.trace("[onListenerPathException] stack trace for: " + message, error);
        reportViolation(new SimpleViolation(Severity.MAJOR, message, packageId));
    }

}