Class CyclicFormThemeHierarchyException

All Implemented Interfaces:
Serializable

public final class CyclicFormThemeHierarchyException extends FormThemeRuntimeException
Exception thrown when a cycle exists in the parent-child hierarchy of form themes. For example, when them A has B as its parent, theme B as C as its parent, and theme C has A as its parent.
See Also:
  • Constructor Details

    • CyclicFormThemeHierarchyException

      public CyclicFormThemeHierarchyException(String message)
      Creates a new exception for a cycle in a form theme hierarchy.
      Parameters:
      message - The message with details regarding the exception.
    • CyclicFormThemeHierarchyException

      public CyclicFormThemeHierarchyException(String message, List<FormThemeReference> nodes)
      Creates a new exception for a cycle in a form theme hierarchy.
      Parameters:
      message - The message with details regarding the exception.
      nodes - The nodes in the parent-child hierarchy graph that form the cycle.
    • CyclicFormThemeHierarchyException

      public CyclicFormThemeHierarchyException(List<FormThemeReference> nodes)
      Creates a new exception for a cycle in a form theme hierarchy.
      Parameters:
      nodes - The nodes in the parent-child hierarchy graph that form the cycle.
    • CyclicFormThemeHierarchyException

      public CyclicFormThemeHierarchyException(String message, FormThemeReference node)
      Creates a new exception for a cycle in a form theme hierarchy.
      Parameters:
      message - The message with details regarding the exception.
      node - One of the nodes in the parent-child hierarchy graph that form the cycle.
    • CyclicFormThemeHierarchyException

      public CyclicFormThemeHierarchyException(FormThemeReference node)
      Creates a new exception for a cycle in a form theme hierarchy.
      Parameters:
      node - One of the nodes in the parent-child hierarchy graph that form the cycle.
  • Method Details

    • cycle

      public List<FormThemeReference> cycle()
      Gets the nodes in the parent-child hierarchy graph that form the cycle. May return an empty list when no such information is available.
      Returns:
      The nodes connected with edges that form the cycle.