Class TemplateCannotBeRemovedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TemplateCannotBeRemovedException
    extends java.lang.RuntimeException
    Thrown on attempt to remove a template which is still being used either by a build configuration or a project.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addBuildTypesUsages​(java.util.Set<java.lang.String> buildTypeIds)  
      void addProjectUsages​(java.util.Set<java.lang.String> projectIds)  
      java.util.Set<java.lang.String> getBuildTypesUsages()  
      java.util.Set<java.lang.String> getProjectsUsages()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TemplateCannotBeRemovedException

        public TemplateCannotBeRemovedException​(java.lang.String message)
    • Method Detail

      • addBuildTypesUsages

        public void addBuildTypesUsages​(@NotNull
                                        java.util.Set<java.lang.String> buildTypeIds)
      • addProjectUsages

        public void addProjectUsages​(@NotNull
                                     java.util.Set<java.lang.String> projectIds)
      • getBuildTypesUsages

        @NotNull
        public java.util.Set<java.lang.String> getBuildTypesUsages()
        Returns:
        ids of build configurations where the template is still used
        Since:
        2022.04.2
      • getProjectsUsages

        @NotNull
        public java.util.Set<java.lang.String> getProjectsUsages()
        Returns:
        ids of projects where the template is still used either as a default template or enforced settings
        Since:
        2022.04.2