JavaTM 2 Platform
Standard Ed. 6

org.omg.CORBA.portable
类 ApplicationException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 org.omg.CORBA.portable.ApplicationException
所有已实现的接口:
Serializable

public class ApplicationException
extends Exception

此类用来报告 ORB 和 stub 之间的应用程序级异常。


构造方法摘要
ApplicationException(String id, InputStream ins)
          根据异常的 CORBA 存储库 ID 和一个输入流(可从中读取异常数据作为其参数)构造 ApplicationException。
 
方法摘要
 String getId()
          返回异常的 CORBA 存储库 ID 而不会将其从异常输入流中移除。
 InputStream getInputStream()
          返回可从中读取异常数据作为其参数的输入流。
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

ApplicationException

public ApplicationException(String id,
                            InputStream ins)
根据异常的 CORBA 存储库 ID 和一个输入流(可从中读取异常数据作为其参数)构造 ApplicationException。

参数:
id - 用户异常的存储库 id
ins - 包含用户异常数据的流
方法详细信息

getId

public String getId()
返回异常的 CORBA 存储库 ID 而不会将其从异常输入流中移除。

返回:
此异常的 CORBA 存储库 ID

getInputStream

public InputStream getInputStream()
返回可从中读取异常数据作为其参数的输入流。

返回:
包含用户异常数据的流

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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