Package org.infernus.idea.checkstyle.exception

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


            final ChangeListManager changeListManager = ChangeListManager.getInstance(project);
            project.getComponent(CheckStylePlugin.class).checkFiles(filesFor(changeListManager.getDefaultChangeList()), 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


            } else {
                presentation.setEnabled(!checkStylePlugin.isScanInProgress());
            }

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

            if (configurationLocation != null) {
                configurationLocation.blacklist();
            }

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

            LOG.info("Loading configuration from " + configurationLocation);
            return getCheckerFactory().getConfig(configurationLocation, module);

        } catch (Exception e) {
            LOG.error("Checker could not be created.", e);
            throw new CheckStylePluginException("Couldn't create Checker", e);
        }
    }
View Full Code Here

                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

                    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

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

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

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

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

        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

            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

TOP

Related Classes of org.infernus.idea.checkstyle.exception.CheckStylePluginException

Copyright © 2018 www.massapicom. 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.