JavaTM 2 Platform
Standard Ed. 6

java.rmi
类 ServerError

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.io.IOException
              继承者 java.rmi.RemoteException
                  继承者 java.rmi.ServerError
所有已实现的接口:
Serializable

public class ServerError
extends RemoteException

当在服务器上处理远程方法调用时(既可以是解编参数、执行远程方法本身时,也可以是编组返回值时),如果抛出 Error,则作为远程方法调用的结果,将抛出 ServerErrorServerError 实例包含作为其 cause 而发生的初始 Error

从以下版本开始:
JDK1.1
另请参见:
序列化表格

字段摘要
 
从类 java.rmi.RemoteException 继承的字段
detail
 
构造方法摘要
ServerError(String s, Error err)
          构造带指定详细消息和嵌入错误的 ServerError
 
方法摘要
 
从类 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
 

构造方法详细信息

ServerError

public ServerError(String s,
                   Error err)
构造带指定详细消息和嵌入错误的 ServerError

参数:
s - 详细消息
err - 嵌入错误
从以下版本开始:
JDK1.1

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only