?? demoexception.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 + -