Exemple #1
0
 /**
  * Construtor especializado. Envia o erro para o e-mail de manutenção
  * @link http://php.net/manual/en/exception.construct.php
  * @param $message [optional]
  * @param $code [optional]
  * @param $previous [optional]
  */
 public function __construct($message = null, $code = 0, $previous = null)
 {
     parent::__construct($message, (int) $code, $previous);
     if ((int) $code) {
         $this->enviarErro();
     }
 }
 /**
  * 
  * @param type $message
  * @param type $code
  * @param type $previous
  */
 public function __construct($message = null, $code = 10, $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }