Wird das Timeout überschritten, ohne dass die gewünschte Zahl der Threads den Synchronisationspunkt erreicht, wird eine TestException geworfen.
Um stattdessen nur einen Fehler auszugeben und den Test fortzusetzen, kann dem Parameter throw der Wert 0 mitgegeben werden (Standard ist 1):
rc.syncThreads("case1", 120000, count=3, throw=0)
www.qfs.deIf the timeout is exceeded without the expected number of threads reaching the synchronization point, a TestException is thrown.
To log an error instead of raising an exception, set the optional parameter throw to 0 (default value 1), e.g.:
rc.syncThreads("case1", 120000, count=3, throw=0)
www.qfs.de* Die Tags @ return und @ access sind wahlfrei.
Das @throw-Tag * muss angegeben werden, wenn die Methode Exceptions wirft.
* Das Tag @static ist erforderlich, wenn die Methode statisch * aufgerufen werden kann.
pear.php.netThe @ return * and @ access tags are mandatory.
The @throws tag is required if * the method uses exceptions.
@static is required if the method can * be called statically.
pear.php.netGrundlagen der Ausnahmebehandlung
Erläutert das Behandeln von Ausnahmen mit den Anweisungen catch, throw und finally.
Best Practices für Ausnahmen
msdn.microsoft.comException Handling Fundamentals
Explains how to handle exceptions using catch, throw, and finally statements.
Best Practices for Handling Exceptions
msdn.microsoft.comVoulez-vous ajouter des mots, des phrases ou des traductions ?
Proposez de créer une nouvelle entrée pour un mot.