activationexception.java

来自「kaffe是一个java虚拟机的源代码。里面包含了一些java例程和标准的jav」· Java 代码 · 共 60 行

JAVA
60
字号
/* * Copyright (c) 1996, 1997, 1998, 1999 *      Transvirtual Technologies, Inc.  All rights reserved. * * See the file "license-lesser.terms" for information on usage and  * redistribution of this file. */package java.rmi.activation;import java.io.PrintStream;import java.io.PrintWriter;public class ActivationException	extends Exception {public Throwable detail;public ActivationException() {	super();}public ActivationException(String s) {	super(s);}public ActivationException(String s, Throwable ex) {	super(s);	detail = ex;}public String getMessage() {	if (detail == null) {		return (super.getMessage());	}	else {		return (super.getMessage() + ":" + detail.getMessage());	}}public void printStackTrace(PrintStream s) {        if (detail != null) {                detail.printStackTrace(s);        }        super.printStackTrace(s);}public void printStackTrace() {	printStackTrace(System.err);}public void printStackTrace(PrintWriter s) {        if (detail != null) {                detail.printStackTrace(s);        }        super.printStackTrace(s);}}

⌨️ 快捷键说明

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