public abstract class ExceptionList extends Object
Request操作中的一个对象来描述可以抛出的方法的异常。 
       它维护的修改列表TypeCode S中的例外。 
        以下代码片段演示了如何创建一个ExceptionList对象: 
  ORB orb = ORB.init(args, null);
    org.omg.CORBA.ExceptionList excList = orb.create_exception_list();  
       变量excList表示一个ExceptionList对象,其中没有TypeCode对象。 
        要向列表中添加项目,首先使用ORB方法create_exception_tc创建一个TypeCode对象,以获取要包含的create_exception_tc 。 然后使用ExceptionList方法add将其添加到列表中。 ExceptionList类具有一个方法来获取列表中的TypeCode对象,并且在添加了项目之后,可以调用在指定索引处访问或删除项目的方法。 
| Constructor and Description | 
|---|
| ExceptionList() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | add(TypeCode exc)
              将一个 
              TypeCode对象描述为此ExceptionList对象的ExceptionList。 | 
| abstract int | count()
              获取此 
              TypeCode对象中的ExceptionList对象的数量。 | 
| abstract TypeCode | item(int index)
              返回给定索引的 
              TypeCode对象。 | 
| abstract void | remove(int index)
              删除给定索引的 
              TypeCode对象。 | 
public abstract int count()
TypeCode对象中的 
           ExceptionList对象数。 
          ExceptionList对象中的 
            TypeCode对象的数量 
           public abstract void add(TypeCode exc)
TypeCode对象描述为此 
           ExceptionList对象的 
           ExceptionList 。 
          exc - 要添加的 
            TypeCode对象 
           public abstract TypeCode item(int index) throws Bounds
TypeCode对象。 
           第一个项目是索引0。 
          index - 所需的TypeCode对象的索引。 
            这必须是int之间0的数目和TypeCode对象减一,包括端值。 
           TypeCode对象 
           Bounds - 如果给定的索引大于或等 
            TypeCode对象中的数量 
            ExceptionList对象 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.