controllerexception.java

来自「JADE(JAVA Agent开发框架)是一个完全由JAVA语言开发的软件,它简」· Java 代码 · 共 58 行

JAVA
58
字号
/*
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * Copyright (C) 2000 CSELT S.p.A. 
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE and no warranty
 * that the program does not infringe the Intellectual Property rights of
 * a third party.  See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA  02111-1307, USA.
 *
 */

package jade.wrapper;

/**
 * This exception class is thrown when an operation fails on any
 * of the agent controller methods.
   <br>
   <b>NOT available in MIDP</b>
   <br>
 */
public class ControllerException extends Exception {

  /**
   * Creates a new exception object, with a default detail message.
   */
  ControllerException() {
    super("Agent error.");
  }

  /**
   * Creates a new exception object, with a given detail message.
   * @param message The detail message for the new exception object.
   */
  public ControllerException(String message) {
    super(message);
  }

  /**
   * Creates a new exception object, extracting message from another throwable.
   * @param aThrowable The original exception or error.
   */
  ControllerException(Throwable aThrowable) {
    super(aThrowable.getMessage());
  }

}

⌨️ 快捷键说明

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