class DefaultErrorListener implements ErrorListener {

    @Override
    public void onSlingEmbeddedPackageError(Throwable error, EmbeddedPackageInstallable installable) {
        final String message = MessageFormat.format(getString("embedded package error ({0}:{1}): {2} \"{3}\""),
                installable.getParentId(), installable.getJcrPath(), error.getClass().getName(), error.getMessage());
        LOGGER.trace("[onSlingEmbeddedPackageError] stack trace for: " + message, error);
        reportViolation(new SimpleViolation(Severity.MAJOR, message));
    }

}