001    // GraphLab Project: http://graphlab.sharif.edu
002    // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology
003    // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/
004    package graphlab.plugins.commonplugin.reporter.actions;
005    
006    import graphlab.platform.core.AbstractAction;
007    import graphlab.platform.core.BlackBoard;
008    import graphlab.ui.UIUtils;
009    
010    /**
011     * this class is only for testing bug report, it just throws exception
012     *
013     * @author azin azadi
014     */
015    public class Exceptioner extends AbstractAction {
016        /**
017         * constructor
018         *
019         * @param bb the blackboard of the action
020         */
021        public Exceptioner(BlackBoard bb) {
022            super(bb);
023            listen4Event(UIUtils.getUIEventKey("exceptioner"));
024        }
025    
026        public void performAction(String eventName, Object value) {
027            throw new RuntimeException("just an Exceptioner! :D");
028        }
029    }