Download for Windows Premium
Publiciteit
catch-Block
Catch block
Der zweite Catch-Block behandelt alle anderen aufgetretenen Fehler mit Abbruch.
The second Catch block handles any other terminating errors that occur.
Wenn ein Catch-Block gefunden wird, werden die darin enthaltenen Anweisungen ausgeführt.
If one is found, the statements in the Catch block are executed.
Sobald die Ausnahme ausgelöst wird, wird der catch-Block ausgeführt.
When the exception occurs, control transfers to the catch block.
Sie verwenden einen catch-Block, um entweder den Fehler zu beheben oder die Exception weiterzuwerfen.
You use a catch block to either compensate for the error or rethrow the exception.
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
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.
Falls eine Ausnahme auftritt, wird der Kontrollfluss sofort zum catch-Block mit dem Ausnahmeobjekt als Parameter umgeleitet.
If an exception is thrown, the script's control flow immediately transfers to the statements in the catch block, with the exception available as the error argument.
Eine throw-Anweisung kann in einem catch-Block verwendet werden, um die von der catch-Anweisung abgefangene Ausnahme erneut auszulösen.
A throw statement can be used in the catch block to re-throw the exception, which has been caught by the catch statement.
Wenn eine Exception geworfen wird, wird der Programmcode hinter der auslösenden Anweisung nicht ausgeführt, und PHP versucht, den ersten passenden catch-Block zu finden.
When an exception is thrown, code following the statement will not be executed, and PHP will attempt to find the first matching catch block.
In PHP 7.1 und später kann ein catch-Block mehrere Exceptions getrennt durch Pipe-Zeichen (|) angeben.
In PHP 7.1 and later, a catch block may specify multiple exceptions using the pipe (|) character.
Bei diesem catch-Block wurde ein Bezeichner catchID angegeben, welcher den Wert enthält, der von der throw-Anweisung ausgeworfen wird. Diesen Bezeichner kann man benutzen, um Informationen zu der ausgelösten Ausnahme zu erhalten.
The catch block specifies an identifier (catchID in the preceding syntax) that holds the value specified by the throw statement; you can use this identifier to get information about the exception that was thrown.
Wie auch normale Ausnahmen, werden diese Error-Ausnahmen so lange nach oben weiter gereicht bis sie einen ersten passenden catch-Block erreichen.
As with normal exceptions, these Error exceptions will bubble up until they reach the first matching catch block.
Ein catch-Block hat Zugriff auf ein Exception-Objekt, das Informationen über den Fehler enthält.
A catch block has access to an Exception object that contains information about the error.
Im catch-Block enthält die Variable exceptionVariable den Ausnahmetyp.
In the catch block, the variable exceptionVariable contains the exception type.
Er zijn geen resultaten gevonden voor deze term.

Synoniemen voor catch-Block in het Duits

Publiciteit

Resultaten: 90. Exact: 90. Verstreken tijd: 32 ms.