Source for file TExceptionView.php
Documentation is available at TExceptionView.php
namespace
Adianti \
Widget \
Util ;
use
Adianti \
Widget \
Container \
TTable ;
use
Adianti \
Widget \
Container \
TScroll ;
* @author Pablo Dall'Oglio
* @copyright Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)
* @license http://www.adianti.com.br/framework-license
$error_array =
$e -> getTrace ( ) ;
$row -> addCell ( '<b>' .
$e -> getMessage ( ) .
'</b><br>' .
$e -> getFile ( ) .
':' .
$e -> getLine ( ) .
'<br>' ) ;
foreach ( $error_array as $error )
$file = isset
( $error [ 'file' ] ) ?
$error [ 'file' ] :
'' ;
$line = isset
( $error [ 'line' ] ) ?
$error [ 'line' ] :
'' ;
$row -> addCell ( 'File: ' .
$file .
':' .
$line ) ;
if ( ! empty ( $error [ 'args' ] ))
foreach ( $error [ 'args' ] as $arg )
$array_param [ ] =
'array' ;
$args [ ] =
implode ( ',' , $array_param ) ;
$class = isset
( $error [ 'class' ] ) ?
$error [ 'class' ] :
'' ;
$type = isset
( $error [ 'type' ] ) ?
$error [ 'type' ] :
'' ;
$row -> addCell ( ' <i>' .
'<font color=green>' .
$class .
'</font>' .
'<font color=olive>' .
$type .
'</font>' .
'<font color=darkblue>' .
$error [ 'function' ] .
'</font>' .
'(' .
'<font color=maroon>' .
implode ( ',' , $args ) .
'</font>' .
')</i>' ) ;