Interface ProjectPersistErrors

    • Method Detail

      • addError

        void addError​(@NotNull
                      SPersistentEntity entity,
                      @NotNull
                      Throwable error)
        Registers persisting error for specified entity
        Parameters:
        entity - entity where persisting failed
        error - error
      • addError

        void addError​(@NotNull
                      SProject project,
                      @NotNull
                      String path,
                      @NotNull
                      Throwable error)
        Registers persisting error for file inside a project
        Parameters:
        project - project the file belongs to
        path - path to file relative to project's configuration dir with '/' as a path separator
        error - error
      • addError

        void addError​(@NotNull
                      SProject project,
                      @NotNull
                      File file,
                      @NotNull
                      Throwable error)
        Registers persisting error for file inside a project
        Parameters:
        project - project the file belongs to
        file - file inside the project's dir
        error - error
      • clearError

        void clearError​(@NotNull
                        SPersistentEntity entity)
        Clears persisting error for the specified entity
        Parameters:
        entity - entity
      • clearError

        void clearError​(@NotNull
                        SProject project,
                        @NotNull
                        String path)
        Clears persisting error for the given path in specified project
        Parameters:
        project - project the file belongs to
        path - path to file relative to project's configuration dir
      • clearAllErrors

        void clearAllErrors​(@NotNull
                            SProject project)
        Clears all persisting errors in the specified project
        Parameters:
        project - project of interest
      • getProjectErrors

        @NotNull
        Map<SProject,​Throwable> getProjectErrors()
        Returns project config persisting errors
        Returns:
        see above
      • getBuildTypeErrors

        @NotNull
        Map<SBuildType,​Throwable> getBuildTypeErrors()
        Returns buildType config persisting errors
        Returns:
        see above
      • getTemplateErrors

        @NotNull
        Map<BuildTypeTemplate,​Throwable> getTemplateErrors()
        Returns template config persisting errors
        Returns:
        see above
      • getVcsRootErrors

        @NotNull
        Map<SVcsRoot,​Throwable> getVcsRootErrors()
        Returns VCS root config persisting errors
        Returns:
        see above
      • getFileErrors

        @NotNull
        Map<SProject,​Map<String,​Throwable>> getFileErrors()
        Returns file persisting errors per project
        Returns:
        see above
      • hasErrors

        boolean hasErrors()
        Returns true if any errors were reported
        Returns:
        see above