Commit 05dd4b8f authored by Alex Ne's avatar Alex Ne

Add import other Exception into ETrace

parent 07021a7c
<?php
namespace X\ETrace;
class Import extends EItem {
/**
* @var array
*/
protected $trace;
/**
* @var string
*/
protected $original;
/**
* @param string $original
* @param string $message
* @param int $code
* @param string $file
* @param int $line
* @param array $trace
*/
public function __construct($original, $message, $code = 0, $file = false, $line = false, $trace = []) {
parent::__construct("system", $message, $code, $file, $line, []);
$this->original = $original;
$this->trace = $trace;
}
/**
* @return array
*/
public function Trace() {
return $this->trace;
}
/**
* @return array
*/
public function Model() {
return array_merge(["original" => $this->original], parent::Model());
}
}
?>
\ No newline at end of file
<?php
namespace X\ETrace;
class System extends EItem {
/**
* @param $message
* @param $code
* @param array $context
*/
public function __construct($message, $code = 1, $context = []) {
parent::__construct("system", $message, $code, false, false, $context);
}
}
?>
\ 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