Class TreeExpandVetoException

  • All Implemented Interfaces:
    Serializable

    public class TreeExpandVetoException
    extends Exception

    An exception class to be thrown to prevent a tree from expanding or collapsing a tree node.

    Exceptions of this type are used by TreePreExpansionListener objects. If such an exception is thrown, the current expansion or collapse operation of the tree will be aborted.

    Version:
    $Id: TreeExpandVetoException.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    See Also:
    Serialized Form
    • Constructor Detail

      • TreeExpandVetoException

        public TreeExpandVetoException​(TreeExpansionEvent ev,
                                       String msg)
        Creates a new instance of TreeExpandVetoException and initializes it with the causing event and a message.
        Parameters:
        ev - the event that triggered this exception
        msg - the error message
    • Method Detail

      • getEvent

        public TreeExpansionEvent getEvent()
        Returns the event that caused this exception.
        Returns:
        the causing event