return new CheckStylePluginException(root.getMessage(), root);
}
public static void processErrorAndLog(@NotNull final String action,
@NotNull final Throwable e) {
final CheckStylePluginException processed = processError(null, e);
if (processed != null) {
LOG.error(action + " failed", processed);
}
}