Class: dataException

Attributes:
Inherits:
Implements:

Contents:

Introduction

Meta Data

Attention
Attention: There is no meta data for this class.

Constants

There are no constants defined for this class.

Properties

Methods

Also See

Attention
Attention: There are no additional references for this class.

Class Syntax

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 21count ($arrFile) + 1);
            
            for (
$i $intStart$i $intCease; ++$i)
            {
                
$this->ExceptionFileLines->___Push (new dataExceptionFileLine ($i$arrFile [$i 1]));
            }
        }
    }

?>