Vertaling van "try-catch" in Engels
We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Puede utilizar una instrucción try-catch para detectar esta excepción.
You can use a try-catch statement to catch this exception.
Es posible utilizar más de una cláusula catch específica en la misma instrucción try-catch.
It is possible to use more than one specific catch clause in the same try-catch statement.
El comportamiento de este try-catch expresión es el mismo que en otros idiomas con excepciones.
The behavior of this try-catch expression is the same as in other languages with exceptions.
Una manera fácil de implementar algunos verificadores sería envolverlo casi todo en un bloque try-catch.
An easy way to implement some checking would be to to wrap just about everything in a try-catch block.
La instrucción try-catch consta de un bloque try seguido de una o más cláusulas catch, las cuales especifican controladores para diferentes excepciones.
The try-catch statement consists of a try block followed by one or more catch clauses, which specify handlers for different exceptions.
En una sentencia try-catch, las cláusulas catch se examinan en orden.
In a try-catch statement the order of the catch clauses is important because the catch clauses are examined in order.
Los bloques try-catch ahora admiten un bloque finally para el código que debería ejecutarse pese a si se ha lanzado una excepción o no.
try-catch blocks now support a finally block for code that should be run regardless of whether an exception has been thrown or not.
Esta función-try-block sintaxis se utiliza raramente en cualquier otro contexto, ya que no tiene ninguna ventaja en comparación con el tradicional bloque try-catch, y la sintaxis resultante es generalmente poco atractivo (y desconocido para la mayoría).
This "function-try-block" syntax is seldom used in any other context because it has no advantage as compared to a traditional try-catch block, and
El mejor regalo que le puedes dar a tu código es utilizar una biblioteca de promesas seria o async-await que proporcione una sintaxis de código muy compacta y familiar como try-catch
The best gift you can give to your code is using instead a reputable promise library or async-await which provides much compact and familiar code syntax like try-catch
Estamos imprimiendo el nombre del subproceso y también haciendo que el subproceso duerma durante 1000 milisegundos dentro de un bloque try-catch mientras el método sleep aumentó la excepción comprobada.
We are printing the thread name and also making the thread sleep for 1000 milliseconds within a try-catch block as sleep method raised checked exception.
A continuación, se muestra un ejemplo de uso de try-catch para manejar una posible excepción de bloqueo de proceso.
Here is an example of using try-catch to handle a potential process-crashing exception.
Por ejemplo, utilice try-catch para manejar los errores de análisis de JSON, como se muestra a continuación.
Use try-catch, for example, to handle JSON parsing errors as shown below.
El Control de excepciones se realiza utilizando un bloque try-catch.
Exception handling is done by using a try-catch block.