Puede decidir devolver null, o bien puede producir una Exception.
It may choose to return null, or it may throw an Exception.
Este tipo de excepciones heredan de la clase Exception.
These kinds of exceptions inherit from the Exception class.
Instancia de Exception representada por este error.
The Exception instance represented by this error.
Esta función se utiliza con mayor frecuencia para registrar una instancia de una Exception.
This function is most often used to log an instance of an Exception.
Así que ese fue un ejemplo sobre cómo manejar excepciones usando la clase predeterminada Exception.
So that was an example of handling exceptions using the default Exception class.
Si se produce un error, esta función recupera el estado anterior y genera una Exception.
On failure, this function rolls back and raises an Exception.
Se añade un método a aquellas clases que heredan de la clase interna Exception
One method is added to those inherited from the built in Exception class
El alojamiento en hoteles o estancias de categoría "Exception"
The lodging in hotels of "Exception" class
Si no están disponibles ninguna de las fuentes citadas anteriormente, se lanzará una Exception.
If none of the aforementioned sources are available, then an Exception will be thrown.
Sin embargo, esta operación no resulta recomendable porque es igual que detectar el tipo Exception base en escenarios no paralelos.
However, we recommend that you do not do this because it is analogous to catching the base Exception type in non-parallel scenarios.
Exception en errores de validación de argumentos (p.ej., claves ausentes)
Exception on argument validation errors (e.g. missing keys)
Si no se puede encontrar una fuente de aleatoriedad apropiada, se lanzará una Exception.
If an appropriate source of randomness cannot be found, an Exception will be thrown.
En el ejemplo anterior, lanzamos la excepción de configuración usando la clase predeterminada Exception.
In the previous example, we threw the configuration exception using the default Exception class.