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; }
public static function model($className = __CLASS__) { return parent::model($className); }