@Test public void testOnSlingEmbeddedPackageError() { new DefaultErrorListener().onSlingEmbeddedPackageError(simpleCause, new EmbeddedPackageInstallable(PackageId.fromString("test"), "/some/path", PackageId.fromString("testtest"))); }
@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)); }
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)); } }
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)); }  }
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)); }  @Override void setResourceBundle(final ResourceBundle resourceBundle); @Override Collection<Violation> getReportedViolations(); @Override void onNodeTypeRegistrationError(final Throwable error, final URL resource); @Override void onJcrNamespaceRegistrationError(final Throwable error, final String prefix, final String uri); @Override void onJcrPrivilegeRegistrationError(final Throwable error, final String jcrPrivilege); @Override void onForcedRootCreationError(final Throwable error, final ForcedRoot forcedRoot); @Override void onListenerException(final Exception error, final ProgressCheck listener, final PackageId packageId); @Override void onSubpackageException(final Exception error, final PackageId packageId); @Override void onImporterException(final Exception error, final PackageId packageId, final String path); @Override void onListenerPathException(final Exception error, final ProgressCheck handler,
                                        final PackageId packageId, final String path); @Override void onInstallHookError(final Throwable error, final PackageId packageId); @Override void onProhibitedInstallHookRegistration(final PackageId packageId); @Override void onRepoInitUrlError(final Throwable error, final URL repoinitUrl); @Override void onRepoInitInlineError(final Throwable error, final List<String> repoinits); @Override void onSlingEmbeddedPackageError(Throwable error, EmbeddedPackageInstallable installable); @Override void onSlingRepoInitScriptsError(Throwable error, List<String> scripts, String failedScript, SlingInstallable installable); @Override void onSlingCreateInstallableError(final Exception error,
                                              final Class<? extends SlingInstallable> installableType,
                                              final PackageId parentId, final String jcrPath); }
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)); }  @Override void setResourceBundle(final ResourceBundle resourceBundle); @Override Collection<Violation> getReportedViolations(); @Override void onNodeTypeRegistrationError(final Throwable error, final URL resource); @Override void onJcrNamespaceRegistrationError(final Throwable error, final String prefix, final String uri); @Override void onJcrPrivilegeRegistrationError(final Throwable error, final String jcrPrivilege); @Override void onForcedRootCreationError(final Throwable error, final ForcedRoot forcedRoot); @Override void onListenerException(final Exception error, final ProgressCheck listener, final PackageId packageId); @Override void onSubpackageException(final Exception error, final PackageId packageId); @Override void onImporterException(final Exception error, final PackageId packageId, final String path); @Override void onListenerPathException(final Exception error, final ProgressCheck handler,
                                        final PackageId packageId, final String path); @Override void onInstallHookError(final Throwable error, final PackageId packageId); @Override void onProhibitedInstallHookRegistration(final PackageId packageId); @Override void onRepoInitUrlError(final Throwable error, final URL repoinitUrl); @Override void onRepoInitInlineError(final Throwable error, final List<String> repoinits); @Override void onSlingEmbeddedPackageError(Throwable error, EmbeddedPackageInstallable installable); @Override void onSlingRepoInitScriptsError(Throwable error, List<String> scripts, String failedScript, SlingInstallable installable); @Override void onSlingCreateInstallableError(final Exception error,
                                              final Class<? extends SlingInstallable> installableType,
                                              final PackageId parentId, final String jcrPath);  }