java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
java.rmi.RemoteException
java.rmi.ServerRuntimeException
@Deprecated public class ServerRuntimeException
当在服务器上处理远程方法调用时(既可以是解编参数、执行远程方法本身,也可以是编组返回值的过程中),如果抛出 RuntimeException,则作为远程方法调用的结果,也会从执行 JDK 1.1 版本的服务器上抛出 ServerRuntimeException。 ServerRuntimeException 实例包含作为其 cause 而发生的初始 RuntimeException。
ServerRuntimeException 不会从执行 Java 2 平台 1.2 或更高版本的服务器上抛出。
| 字段摘要 |
|---|
| 从类 java.rmi.RemoteException 继承的字段 |
|---|
detail |
| 构造方法摘要 | |
|---|---|
ServerRuntimeException(String s, Exception ex) 已过时。 无替换版本 |
|
| 方法摘要 |
|---|
| 从类 java.rmi.RemoteException 继承的方法 |
|---|
getCause, getMessage |
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
@Deprecated public ServerRuntimeException(String s, Exception ex)
ServerRuntimeException。
s - 详细消息
ex - 嵌入异常