Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
X Lib
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
XLibs
X Lib
Commits
05dd4b8f
Commit
05dd4b8f
authored
Jun 27, 2016
by
Alex Ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add import other Exception into ETrace
parent
07021a7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
Import.php
ETrace/Import.php
+42
-0
System.php
ETrace/System.php
+13
-0
No files found.
ETrace/Import.php
0 → 100644
View file @
05dd4b8f
<?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
ETrace/System.php
0 → 100644
View file @
05dd4b8f
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment