Commit a67eea3c authored by Alex Ne's avatar Alex Ne

next step

parent 3f77333a
......@@ -9,7 +9,8 @@ class TItem extends \Exception
/**
* @var mixed
*/
protected $Trace;
protected $hash;
/**
* @var mixed
*/
......@@ -37,7 +38,36 @@ class TItem extends \Exception
}
$this->context = $context;
$this->Trace = $this->getTrace();
}
/**
* @return mixed
*/
public function Trace()
{
return $this->getTrace();
}
/**
* @return mixed
*/
public function Dump()
{
return $this->Model();
}
public function Model()
{
return
[
"hash" => $this->hash,
"message" => $this->message,
"code" => $this->code,
"file" => $this->file,
"line" => $this->line,
"trace" => $this->Trace(),
"context" => $this->context,
];
}
public function Save()
......
......@@ -4,7 +4,41 @@ require_once "Error.php";
//throw new ErrorException("Error Processing Request", 1);
$ddd = new X\ETrace\Error("Error Processing Request", 1);
class wwwww
{
/**
* @var mixed
*/
static $eer;
/**
* @param $value
* @param $rrrr
*/
public function qwewqew($value, $rrrr)
{
$ee = new X\ETrace\Error("Error Processing Request", 1);
print_r(
$ee->Trace()
);
}
public static function qqq()
{
self::$eer = new self();
self::fff();
}
public static function fff()
{
self::$eer->qwewqew([1, 2, 5, 7, 9], "dfgd");
}
}
wwwww::qqq();
//throw $ddd;
throw $ddd;
?>
\ No newline at end of file
<?php
require_once "test.php";
?>
\ No newline at end of file
<?php
require_once "test2.php";
?>
\ No newline at end of file
<?php
function FunctionName()
{
require_once "test3.php";
# code...
}
FunctionName();
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment