Hola, se necesita habilitar algo en el php.ini para que funcione el
throw new Exception("..."); porque me sale este error:
Fatal error: Uncaught exception 'Exception' with message '...' in index.php:12 Stack trace: #0 {main} thrown in index.php on line 12
Además en el php designer no se resalta el throw y el Exception como si fueran funciones del php
Espero me puedan ayudar, gracias.