illegaleventexception.java

来自「sea是一个基于seda模式的实现。这个设计模式将系统分为很多stage。每个s」· Java 代码 · 共 54 行

JAVA
54
字号
/* * Copyright (c) 2003, The Regents of the University of California, through * Lawrence Berkeley National Laboratory (subject to receipt of any required * approvals from the U.S. Dept. of Energy). All rights reserved. */package gov.lbl.dsd.sea.event;import gov.lbl.dsd.sea.Stage;/** * A runtime exception similar in spirit to the classic * {@link java.lang.IllegalArgumentException}, to be thrown when * {@link gov.lbl.dsd.sea.EventHandler#handle(java.lang.Object)} cannot handle an event of a certain kind. * Useful, since most EventHandlers cannot handle arbitrary objects but can only * handle events of certain classes with certain parameter constraints. * <p> * If appropriate, you can enqueue an instance of this class onto a stage. * * @author whoschek@lbl.gov * @author $Author: hoschek3 $ * @version $Revision: 1.2 $, $Date: 2004/05/21 20:34:11 $ */public class IllegalEventException extends ExceptionEvent {    /**     * Constructs a new exception with the specified detail message and causing     * event.     *     * @param causingEvent     *            the event that caused the exception.     * @param source     *            the stage that could not properly handle the causing event.     */    public IllegalEventException(Object causingEvent, Stage source) {        super(causingEvent, source);    }    /**     * Constructs a new exception with the specified detail message and causing     * event.     *     * @param message     *            the detail message. The detail message is saved for later     *            retrieval by the {@link #getMessage()}method.     * @param causingEvent     *            the event that caused the exception.     * @param source     *            the stage that could not properly handle the causing event.     */    public IllegalEventException(String message, Object causingEvent, Stage source) {        super(message, null, causingEvent, source);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?