Ejemplo n.º 1
0
 public function __toString()
 {
     $msg = 'Exception Error[' . $this->getErrorId() . ']: ' . get_class($this) . ':: ' . $this->getMessage() . ' (' . $this->getCode() . ')';
     if (!is_null($this->_cause)) {
         $msg .= "\r\n" . 'Exception Cause: ' . $this->_cause->getErrorId();
     }
     return $msg;
 }
Ejemplo n.º 2
0
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }