View Javadoc

1   /*
2    * ReceivedUnknownEventException.java Created @ Aug 3, 2004
3    * 
4    * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
5    * Delft, the Netherlands. All rights reserved.
6    * 
7    * See for project information <a href="http://www.simulation.tudelft.nl/">
8    * www.simulation.tudelft.nl </a>.
9    * 
10   * The source code and binary code of this software is proprietary information
11   * of Delft University of Technology.
12   */
13  
14  package org.gscg.common.gui.exceptions;
15  
16  import nl.tudelft.simulation.event.EventType;
17  import nl.tudelft.simulation.logger.Logger;
18  
19  /***
20   * The ReceivedUnknownEventException is fired when an event listener receives an
21   * event but the listener has no logic to process the event, or the eventtype.
22   * <p>
23   * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
24   * Delft, the Netherlands. All rights reserved.
25   * 
26   * See for project information <a href="http://www.simulation.tudelft.nl/">
27   * www.simulation.tudelft.nl </a>.
28   * 
29   * The source code and binary code of this software is proprietary information
30   * of Delft University of Technology.
31   * 
32   * @author <a
33   *         href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
34   *         van Houten </a>
35   * @version $Revision: 1.1 $ $Date: 2005/06/16 12:33:55 $
36   * @since 1.0.0
37   */
38  public class ReceivedUnknownEventException
39  {
40  	/***
41  	 * constructs a new ReceivedUnknownEventException
42  	 * 
43  	 * @param caller the caller
44  	 * @param methodName the name of the method
45  	 * @param eventType the name of the eventtype which is unknown
46  	 */
47  	public ReceivedUnknownEventException(final Object caller,
48  			final String methodName, final EventType eventType)
49  	{
50  		super();
51  		Logger.severe(caller, methodName, "Received an event of type: "
52  				+ eventType + ", but I don't have any logic to deal with it.");
53  	}
54  }