All other run time exceptions are caught with the last catch block.
Alle weiteren Laufzeitausnahmen werden mit dem letzten Catch-Block erfasst.
This is where you look at the number of statements in the catch block, and if that number is zero, you display a diagnostic warning because the block is empty.
Dies ist, wo man sieht die Anzahl der Anweisungen im Catch-Block, und wenn diese Anzahl 0 (null) ist, Sie eine diagnostische Warnung anzeigen, weil der Block leer ist.
You can then reference the object's properties in the catch block.
Im catch Block können die Eigenschaften des Objektes referenziert werden.
Each try must have at least one corresponding catch block.
Jeder try-Block muss mindestens einen zugehörigen catch Block besitzen.
You use a catch block to either compensate for the error or rethrow the exception.
Sie verwenden einen catch-Block, um entweder den Fehler zu beheben oder die Exception weiterzuwerfen.
If no exception is thrown in the try block, the catch block is skipped.
Wenn keine Ausnahme im try-Block ausgelöst wird, wird der catch-Block nicht ausgeführt.
The unsafe action is written to a try block, and if a problem occurs, this exception can be handled in a catch block.
Die unsichere Aktion wird in einen try-Block geschrieben und bei Auftreten eines Problems, kann diese Ausnahme in einem catch-Block behandelt werden.
Notice that the loop where we add each child folder is in a try... catch block - this is important, because some paths might not be accessible, usually for security reasons.
Beachten Sie, dass die Schleife, in der wir jeden Unterordner hinzufügen, in einem Try... catch block ist - dies ist wichtig, da einige Pfade möglicherweise nicht zugänglich sind, normalerweise aus Sicherheitsgründen.
The catch block specifies an identifier (e in the example above) that holds the value specified by the throw statement.
Der catch Block spezifiziert einen Variable (catchID im voranstehenden Syntaxbeispiel), welcher den Wert des throw Statements enthält.
That is, you want the try block to succeed, and if it does not succeed, you want to pass control to the catch block.
Der try-Block soll erfolgreich ausgeführt werden. Wenn das nicht der Fall ist, dann soll die Kontrolle an den catch-Block übergeben werden.
In such and similar cases I usually use two safeguards to ensure that the exception ignoring was really intended and not just laziness: the caught exception is called ignored and the catch block has a comment.
In solchen oder ähnlichen Fällen benutze ich zwei Sicherheitmechanismen um sicherzustellen, dass die Exception wirklich zu ignorieren war und nicht aus Faulheit ignoriert wurde: der Name der abgefangenen Exception heißt ignored und der catch-Block hat einen Kommentar
Tough only exceptions between 0 and 255 can be handled in a different way, an exception above 255 can be catched with a general catch block.
Obwohl nur Ausnahmen zwischen 0 und 255 differenziert behandelt werden können, kann eine Ausnahme mit einem höheren Wert als 255 durch einen allgemeinen Catch-Block trotzdem abgefangen werden.
When the exception occurs, control transfers to the catch block.
Wenn die Exception geworfen wird, wird der Programmfluss in den catch Block gegeben.