Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
b2341edf
Commit
b2341edf
authored
Oct 25, 2014
by
Alexander Mohorev
Committed by
Qiang Xue
Oct 31, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more default names of exceptions
parent
497e1fed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ErrorException.php
framework/base/ErrorException.php
+6
-4
No files found.
framework/base/ErrorException.php
View file @
b2341edf
...
@@ -75,18 +75,20 @@ class ErrorException extends \ErrorException
...
@@ -75,18 +75,20 @@ class ErrorException extends \ErrorException
{
{
$names
=
[
$names
=
[
E_ERROR
=>
'PHP Fatal Error'
,
E_ERROR
=>
'PHP Fatal Error'
,
E_WARNING
=>
'PHP Warning'
,
E_PARSE
=>
'PHP Parse Error'
,
E_PARSE
=>
'PHP Parse Error'
,
E_NOTICE
=>
'PHP Notice'
,
E_CORE_ERROR
=>
'PHP Core Error'
,
E_CORE_ERROR
=>
'PHP Core Error'
,
E_COMPILE_ERROR
=>
'PHP Compile Error'
,
E_USER_ERROR
=>
'PHP User Error'
,
E_WARNING
=>
'PHP Warning'
,
E_CORE_WARNING
=>
'PHP Core Warning'
,
E_CORE_WARNING
=>
'PHP Core Warning'
,
E_COMPILE_ERROR
=>
'PHP Compile Error'
,
E_COMPILE_WARNING
=>
'PHP Compile Warning'
,
E_COMPILE_WARNING
=>
'PHP Compile Warning'
,
E_USER_ERROR
=>
'PHP User Error'
,
E_USER_WARNING
=>
'PHP User Warning'
,
E_USER_WARNING
=>
'PHP User Warning'
,
E_USER_NOTICE
=>
'PHP User Notice'
,
E_STRICT
=>
'PHP Strict Warning'
,
E_STRICT
=>
'PHP Strict Warning'
,
E_NOTICE
=>
'PHP Notice'
,
E_RECOVERABLE_ERROR
=>
'PHP Recoverable Error'
,
E_RECOVERABLE_ERROR
=>
'PHP Recoverable Error'
,
E_DEPRECATED
=>
'PHP Deprecated Warning'
,
E_DEPRECATED
=>
'PHP Deprecated Warning'
,
E_USER_DEPRECATED
=>
'PHP User Deprecated Warning'
,
];
];
return
isset
(
$names
[
$this
->
getCode
()])
?
$names
[
$this
->
getCode
()]
:
'Error'
;
return
isset
(
$names
[
$this
->
getCode
()])
?
$names
[
$this
->
getCode
()]
:
'Error'
;
...
...
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