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
5fc01bce
Commit
5fc01bce
authored
Jan 09, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better names for PHP error-exceptions
parent
9fb50b91
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
ErrorException.php
framework/yii/base/ErrorException.php
+13
-13
No files found.
framework/yii/base/ErrorException.php
View file @
5fc01bce
...
...
@@ -89,19 +89,19 @@ class ErrorException extends Exception
public
function
getName
()
{
$names
=
[
E_ERROR
=>
'Fatal Error'
,
E_PARSE
=>
'Parse Error'
,
E_CORE_ERROR
=>
'Core Error'
,
E_COMPILE_ERROR
=>
'Compile Error'
,
E_USER_ERROR
=>
'User Error'
,
E_WARNING
=>
'Warning'
,
E_CORE_WARNING
=>
'Core Warning'
,
E_COMPILE_WARNING
=>
'Compile Warning'
,
E_USER_WARNING
=>
'User Warning'
,
E_STRICT
=>
'
Strict
'
,
E_NOTICE
=>
'Notice'
,
E_RECOVERABLE_ERROR
=>
'Recoverable Error'
,
E_DEPRECATED
=>
'
Deprecated
'
,
E_ERROR
=>
'
PHP
Fatal Error'
,
E_PARSE
=>
'P
HP P
arse 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_COMPILE_WARNING
=>
'
PHP
Compile Warning'
,
E_USER_WARNING
=>
'
PHP
User Warning'
,
E_STRICT
=>
'
PHP Strict Warning
'
,
E_NOTICE
=>
'
PHP
Notice'
,
E_RECOVERABLE_ERROR
=>
'
PHP
Recoverable Error'
,
E_DEPRECATED
=>
'
PHP Deprecated Warning
'
,
];
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