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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
ca465eae
Commit
ca465eae
authored
May 06, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed handleError to handleException
parent
48dbde39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Command.php
framework/db/Command.php
+3
-3
No files found.
framework/db/Command.php
View file @
ca465eae
...
...
@@ -284,7 +284,7 @@ class Command extends \yii\base\Component
return
$n
;
}
catch
(
\Exception
$e
)
{
Yii
::
endProfile
(
$token
,
__METHOD__
);
$this
->
handleE
rror
(
$e
,
$rawSql
);
$this
->
handleE
xception
(
$e
,
$rawSql
);
}
}
...
...
@@ -417,7 +417,7 @@ class Command extends \yii\base\Component
return
$result
;
}
catch
(
\Exception
$e
)
{
Yii
::
endProfile
(
$token
,
'yii\db\Command::query'
);
$this
->
handleE
rror
(
$e
,
$rawSql
);
$this
->
handleE
xception
(
$e
,
$rawSql
);
}
}
...
...
@@ -775,7 +775,7 @@ class Command extends \yii\base\Component
* @param string $rawSql SQL that produced exception
* @throws Exception
*/
protected
function
handleE
rror
(
\Exception
$e
,
$rawSql
)
protected
function
handleE
xception
(
\Exception
$e
,
$rawSql
)
{
if
(
$e
instanceof
Exception
)
{
throw
$e
;
...
...
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