Class Menu.CycleDetectedException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Menu

    public static class Menu.CycleDetectedException
    extends java.lang.RuntimeException
    Thrown if a menu is an ancestor if himself.
    See Also:
    Serialized Form
    • 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.String toString()  
      • Methods inherited from class java.lang.Throwable

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

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        toString in class java.lang.Throwable