The try block contains the guarded code that may cause the exception.
El bloque try contiene el código protegido que puede causar la excepción.
The resource declared at the try block is implicitly declared as final.
El recurso declarado en el bloque try se declara implícitamente como definitiva.
Code may be surrounded in a try block, to facilitate the catching of potential exceptions.
El código puede estar dentro de un bloque try para facilitar la captura de excepciones potenciales.
This is useful when the try block contains statements that may throw different types of exceptions.
Esto es útil cuando el bloque try contiene declaraciones que pueden lanzar diferentes tipos de excepciones.
The try-catch statement consists of a try block followed by one or more catch clauses, which specify handlers for different exceptions.
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.
You can use a catch block to handle all exceptions that may be generated in the try block.
Un bloque catch es usado para manejar todas las excepciones que pueden ser generadas en el bloque try.
I've also defined the ask and bid ndarrays inside the try block because some requests could return empty arrays, and for now we are trying to avoid dealing with this.
También he definido los ask y bid ndarrays en el bloque try ya que algunos pedidos pueden devolver arrays vacíos, y por ahora estamos tratando de evitar eso.
If no exception is thrown in the try block, the catch block is skipped.
Si ninguna excepción es arrojada en el bloque try, el bloque catch es ignorado.
Except the deceleration of resources within the parenthesis every thing is same as normal try/catch block of a try block.
Excepto la desaceleración de los recursos dentro del paréntesis de cada cosa es el mismo que el bloque try/ catch normal de un bloque try.
You can list down multiple catch statements to catch different type of exceptions in case your try block raises more than one exception in different situations.
Puede enumerar abajo varias instrucciones catch para capturar diferentes tipos de excepciones en el caso de que su bloque try plantea más de una excepción en diferentes situaciones.
That is, you want the try block to succeed, and if it does not succeed, you want control to pass to the catch block.
Es decir, usted quiere que el bloque try tenga éxito, pero si éste no tiene éxito, usted quiere que el control pase al bloque catch.
Execute the request (this example puts the execute call in a try block to catch exceptions)
Ejecuta la solicitud (en este ejemplo, se coloca la llamada execute en un bloque try para detectar excepciones)
For example, if you've opened a database connection or a file on the disk in the try block, you can perform cleanup tasks like closing the connection in the finally block as it's guaranteed to run.
Por ejemplo, si has abierto una conexión a una base de datos o un archivo en el disco en el bloque try, puedes llevar a cabo tareas de limpieza como cerrar la conexión en el bloque finally, ya que es una garantía que será ejecutado.