Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/07/2011, 15:28
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Duda con excepciones

Con todo respeto jotaincubus, pero este tipo de preguntas no las entiendo, demoras menos tiempo en hacer un simple test que en escribir la pregunta.

Código PHP:
Ver original
  1. class SimpleException extends Exception
  2. {}
  3.  
  4. class SimpleException2 extends Exception
  5. {}
  6.  
  7. try {
  8.     throw new SimpleException();
  9.     echo 'After SimpleException'  . PHP_EOL;
  10.     throw new SimpleException2();
  11.     echo 'After SimpleException2' . PHP_EOL;
  12. }catch(Exception $e) {
  13.     print_r($e);
  14. }
  15.  
  16. echo PHP_EOL;

hay que probar mas, no se rompe por testar ;)

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)