Package commandLineMenus
Class Menu.CycleDetectedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- commandLineMenus.Menu.CycleDetectedException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Menu
public static class Menu.CycleDetectedException extends java.lang.RuntimeExceptionThrown if a menu is an ancestor if himself.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CycleDetectedException(java.util.List<Menu> cycleDetected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Menu>getCycleDetected()Returns the Menus of the cycle.java.lang.StringtoString()
-
-
-
Constructor Detail
-
CycleDetectedException
public CycleDetectedException(java.util.List<Menu> cycleDetected)
-
-
Method Detail
-
getCycleDetected
public java.util.List<Menu> getCycleDetected()
Returns the Menus of the cycle.- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-