Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
org.omg.CORBA

Class ExceptionList


  • public abstract class ExceptionList
    extends Object
    An object used in Request operations to describe the exceptions that can be thrown by a method. It maintains a modifiable list of TypeCodes of the exceptions.

    The following code fragment demonstrates creating an ExceptionList object:

        ORB orb = ORB.init(args, null);
        org.omg.CORBA.ExceptionList excList = orb.create_exception_list();
     
    The variable excList represents an ExceptionList object with no TypeCode objects in it.

    To add items to the list, you first create a TypeCode object for the exception you want to include, using the ORB method create_exception_tc. Then you use the ExceptionList method add to add it to the list. The class ExceptionList has a method for getting the number of TypeCode objects in the list, and after items have been added, it is possible to call methods for accessing or deleting an item at a designated index.

    Since:
    JDK1.2
    • Constructor Detail

      • ExceptionList

        public ExceptionList()
    • Method Detail

      • count

        public abstract int count()
        Retrieves the number of TypeCode objects in this ExceptionList object.
        Returns:
        the number of TypeCode objects in this ExceptionList object
      • add

        public abstract void add(TypeCode exc)
        Adds a TypeCode object describing an exception to this ExceptionList object.
        Parameters:
        exc - the TypeCode object to be added
      • item

        public abstract TypeCode item(int index)
                               throws Bounds
        Returns the TypeCode object at the given index. The first item is at index 0.
        Parameters:
        index - the index of the TypeCode object desired. This must be an int between 0 and the number of TypeCode objects minus one, inclusive.
        Returns:
        the TypeCode object at the given index
        Throws:
        Bounds - if the index given is greater than or equal to the number of TypeCode objects in this ExceptionList object
      • remove

        public abstract void remove(int index)
                             throws Bounds
        Removes the TypeCode object at the given index. Note that the indices of all the TypeCoded objects following the one deleted are shifted down by one.
        Parameters:
        index - the index of the TypeCode object to be removed. This must be an int between 0 and the number of TypeCode objects minus one, inclusive.
        Throws:
        Bounds - if the index is greater than or equal to the number of TypeCode objects in this ExceptionList object

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-org/omg/CORBA/ExceptionList.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut