Last active
April 18, 2017 07:00
-
-
Save jeavila/b2c976c847fa678f04e121709f3bc842 to your computer and use it in GitHub Desktop.
Bloque básico para controlar una excepción
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
// Aquí se prueba el código | |
} | |
catch(Exception $e) { | |
// Captura o lanzamiento de la excepción | |
} | |
finally { | |
// Opcional, pero si existe ocurrirá halla excepción o no | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment