In file D:\oblib-core\php\oblib\dataException\dataException.class.php between lines 45 and 76.
<?php
/**
*
*/
class dataException extends dataObject
{
function __construct ($objException)
{
parent::__construct ('Exception');
$this->___Push (new dataString ('FileName', $objException->getFile ()));
$this->___Push (new dataNumber ('FileLine', $objException->getLine ()));
$this->___Push (new dataDatetime ('OccurredOn', time ()));
$this->___Push (new dataString ('ExceptionClass', get_class ($objException)));
$this->___Push (new dataSeries ('ExceptionTraces', 'dataExceptionTrace'));
$this->___Push (new dataSeries ('ExceptionFileLines', 'dataExceptionFileLine'));
foreach ($objException->getTrace () as $arrTrace)
{
$this->ExceptionTraces->___Push (new dataExceptionTrace ($arrTrace));
}
// Show the source code for where the error had occurred
$arrFile = file ($this->FileName);
$intStart = max (1, (string) $this->FileLine - 10);
$intCease = min ($intStart + 21, count ($arrFile) + 1);
for ($i = $intStart; $i < $intCease; ++$i)
{
$this->ExceptionFileLines->___Push (new dataExceptionFileLine ($i, $arrFile [$i - 1]));
}
}
}
?>