1 20 21 package org.jacorb.orb.dii; 22 23 27 28 import java.util.*; 29 30 public class ExceptionList 31 extends org.omg.CORBA.ExceptionList 32 { 33 private Vector list = new Vector(); 34 35 public int count() 36 { 37 return list.size(); 38 } 39 40 public void add(org.omg.CORBA.TypeCode tc ) 41 { 42 list.addElement( tc ); 43 } 44 45 public org.omg.CORBA.TypeCode item(int index) 46 throws org.omg.CORBA.Bounds 47 { 48 try 49 { 50 return (org.omg.CORBA.TypeCode )list.elementAt(index); 51 } 52 catch ( ArrayIndexOutOfBoundsException e ) 53 { 54 throw new org.omg.CORBA.Bounds (); 55 } 56 } 57 58 public void remove(int index) 59 throws org.omg.CORBA.Bounds 60 { 61 try 62 { 63 list.removeElementAt(index); 64 } 65 catch ( ArrayIndexOutOfBoundsException e ) 66 { 67 throw new org.omg.CORBA.Bounds (); 68 } 69 } 70 } 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | Popular Tags |