站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Class ApplicationException - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

org.omg.CORBA.portable
Class ApplicationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.omg.CORBA.portable.ApplicationException

public class ApplicationException
extends Exception

This class is used for reporting application level exceptions between ORBs and stubs.

See Also:
Serialized Form

Constructor Summary
ApplicationException(String id, InputStream ins)
          Constructs an ApplicationException from the CORBA repository ID of the exception and an input stream from which the exception data can be read as its parameters.
 
Method Summary
 String getId()
          Returns the CORBA repository ID of the exception without removing it from the exceptions input stream.
 InputStream getInputStream()
          Returns the input stream from which the exception data can be read as its parameters.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationException

public ApplicationException(String id,
                            InputStream ins)
Constructs an ApplicationException from the CORBA repository ID of the exception and an input stream from which the exception data can be read as its parameters.
Parameters:
id - the repository id of the user exception
ins - the stream which contains the user exception data
Method Detail

getId

public String getId()
Returns the CORBA repository ID of the exception without removing it from the exceptions input stream.
Returns:
The CORBA repository ID of this exception

getInputStream

public InputStream getInputStream()
Returns the input stream from which the exception data can be read as its parameters.
Returns:
The stream which contains the user exception data

JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.