https://www.quobit.mx/manejo-de-errores-en-php.html
Manejo de errores en PHP