public function __construct($msg, BaseModel $record, Exception $previous = null, $debugInfo = array()) { parent::__construct($msg, 0, $previous); $this->debugInfo = $debugInfo; $this->record = $record; }