Examples of CheckStylePluginException


Examples of org.infernus.idea.checkstyle.exception.CheckStylePluginException

                LOG.debug("Assertion error caught, exiting quietly", e);
            }
            return null;

        } catch (Throwable e) {
            final CheckStylePluginException processed = CheckStylePlugin.processError(
                    "The inspection could not be executed.", e);
            LOG.error("The inspection could not be executed.", processed);

            return null;
        }
View Full Code Here

Examples of org.infernus.idea.checkstyle.exception.CheckStylePluginException

                    markThreadComplete();
                }
            });

        } catch (final Throwable e) {
            final CheckStylePluginException processedError = CheckStylePlugin.processError(
                    "An error occurred during a file scan.", e);

            if (processedError != null) {
                LOG.error("An error occurred while scanning a file.", processedError);
View Full Code Here

Examples of org.infernus.idea.checkstyle.exception.CheckStylePluginException

        try {
            return getCheckerFactory().getChecker(location, module, classLoader);

        } catch (Exception e) {
            throw new CheckStylePluginException("Couldn't create Checker", e);
        }
    }
View Full Code Here

Examples of org.infernus.idea.checkstyle.exception.CheckStylePluginException

        try {
            return getCheckerFactory().getConfig(location, module);

        } catch (Throwable e) {
            throw new CheckStylePluginException("Couldn't create Checker", e);
        }
    }
View Full Code Here

Examples of org.infernus.idea.checkstyle.exception.CheckStylePluginException

        try {
            this.processFilesForModuleInfoAndScan();

        } catch (final Throwable e) {
            final CheckStylePluginException processedError = CheckStylePlugin.processError(
                    "An error occurred during a file scan.", e);

            if (processedError != null) {
                LOG.error("An error occurred while scanning a file.",
                        processedError);
View Full Code Here

Examples of org.infernus.idea.checkstyle.exception.CheckStylePluginException

            final MessageFormat messageFormat = new MessageFormat(IDEAUtilities.getResource(messageKey, messageFallback));
            if (module != null) {
                IDEAUtilities.showError(module.getProject(), messageFormat.format(messageArgs));
            } else {
                throw new CheckStylePluginException(messageFormat.format(messageArgs));
            }
        }
        return null;
    }
View Full Code Here

Examples of org.infernus.idea.checkstyle.exception.CheckStylePluginException

                && !(root instanceof CheckstyleException)) {
            root = root.getCause();
        }

        if (message != null) {
            return new CheckStylePluginException(message, root);
        }

        return new CheckStylePluginException(root.getMessage(), root);
    }
View Full Code Here

Examples of org.infernus.idea.checkstyle.exception.CheckStylePluginException

        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);
        }
    }
View Full Code Here

Examples of org.infernus.idea.checkstyle.exception.CheckStylePluginException

            // enable
            presentation.setEnabled(toolWindow.isAvailable());
            presentation.setVisible(true);

        } catch (Throwable e) {
            final CheckStylePluginException processed
                    = CheckStylePlugin.processError(null, e);
            if (processed != null) {
                LOG.error("Action update failed", processed);
            }
        }
View Full Code Here

Examples of org.infernus.idea.checkstyle.exception.CheckStylePluginException

            final ChangeListManager changeListManager = ChangeListManager.getInstance(project);
            project.getComponent(CheckStylePlugin.class).checkFiles(changeListManager.getAffectedFiles(), getSelectedOverride(toolWindow));

        } catch (Throwable e) {
            final CheckStylePluginException processed = CheckStylePlugin.processError(null, e);
            if (processed != null) {
                LOG.error("Modified files scan failed", processed);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.