Package de.xima.fc.common.form_theme
Class CyclicFormThemeHierarchyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.xima.fc.common.form_theme.FormThemeRuntimeException
-
- de.xima.fc.common.form_theme.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CyclicFormThemeHierarchyException(FormThemeReference node)
Creates a new exception for a cycle in a form theme hierarchy.CyclicFormThemeHierarchyException(String message)
Creates a new exception for a cycle in a form theme hierarchy.CyclicFormThemeHierarchyException(String message, FormThemeReference node)
Creates a new exception for a cycle in a form theme hierarchy.CyclicFormThemeHierarchyException(String message, List<FormThemeReference> nodes)
Creates a new exception for a cycle in a form theme hierarchy.CyclicFormThemeHierarchyException(List<FormThemeReference> nodes)
Creates a new exception for a cycle in a form theme hierarchy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<FormThemeReference>
cycle()
Gets the nodes in the parent-child hierarchy graph that form the cycle.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-