⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demoexception.java

📁 MPI for java for Distributed Programming
💻 JAVA
字号:
/***************************************************************************                                                                         **             Java Grande Forum Benchmark Suite - MPJ Version 1.0         **                                                                         **                            produced by                                  **                                                                         **                  Java Grande Benchmarking Project                       **                                                                         **                                at                                       **                                                                         **                Edinburgh Parallel Computing Centre                      **                                                                         **                email: epcc-javagrande@epcc.ed.ac.uk                     **                                                                         **      Original version of this code by Hon Yau (hwyau@epcc.ed.ac.uk)     **                                                                         **      This version copyright (c) The University of Edinburgh, 2001.      **                         All rights reserved.                            **                                                                         ***************************************************************************/package jgf_mpj_benchmarks.section3.montecarlo;//package montecarlo;/**  * Error exception, for use by the Applications Demonstrator code.  * With optional field for selecting whether to print debug information  * via a stack trace.  *  * @author H W Yau  * @version $Revision: 1.1 $ $Date: 2005/04/29 17:43:42 $  */public class DemoException extends java.lang.Exception {  /**    * Flag for selecting whether to print the stack-trace dump.    */  public static boolean DEBUG=true;  /**    * Default constructor.    */  public DemoException() {    super();    if( DEBUG ) {      printStackTrace();    }  }  /**    * Default constructor for reporting an error message.    */  public DemoException(String s) {    super(s);    if( DEBUG ) {      printStackTrace();    }  }  /**    * Default constructor for reporting an error code.    */  public DemoException(int ierr) {    super(String.valueOf(ierr));    if( DEBUG ) {      printStackTrace();    }  }}

⌨️ 快捷键说明

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