public function __construct(QCallerException $objExc) { parent::__construct($objExc->getMessage(), $objExc->getCode()); $this->intOffset = $objExc->Offset; $this->strTraceArray = $objExc->TraceArray; if ($objExc instanceof QDatabaseExceptionBase) { $this->strQuery = $objExc->Query; } $this->file = $this->strTraceArray[$this->intOffset]['file']; $this->line = $this->strTraceArray[$this->intOffset]['line']; }
public function __construct(QCallerException $objExc) { parent::__construct($objExc->getMessage(), $objExc->getCode()); $this->intOffset = $objExc->Offset; $this->strTraceArray = $objExc->TraceArray; $this->file = $this->strTraceArray[$this->intOffset]['file']; $this->line = $this->strTraceArray[$this->intOffset]['line']; }