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
db444e57
Commit
db444e57
authored
Nov 21, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6141 from cdvrooman/patch-11
[ci skip] Update runtime-handling-errors.md
parents
2b2ad430
9f578351
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
runtime-handling-errors.md
docs/guide/runtime-handling-errors.md
+4
-4
No files found.
docs/guide/runtime-handling-errors.md
View file @
db444e57
...
...
@@ -7,8 +7,8 @@ experience than before. In particular, the Yii error handler does the followings
*
All non-fatal PHP errors (e.g. warnings, notices) are converted into catchable exceptions.
*
Exceptions and fatal PHP errors are displayed with detailed call stack information and source code lines
in debug mode.
*
Support using a dedicated
[
controller action
](
structure-actions.md
)
to display errors.
*
Support different error response formats.
*
Support
s
using a dedicated
[
controller action
](
structure-actions.md
)
to display errors.
*
Support
s
different error response formats.
The
[
[yii\web\ErrorHandler|error handler
]
] is enabled by default. You may disable it by defining the constant
`YII_ENABLE_ERROR_HANDLER`
to be false in the
[
entry script
](
structure-entry-scripts.md
)
of your application.
...
...
@@ -61,10 +61,10 @@ throw new NotFoundHttpException();
## Customizing Error Display <a name="customizing-error-display"></a>
The
[
[yii\web\ErrorHandler|error handler
]
] adjusts error display according to the value of the constant
`YII_DEBUG`
.
The
[
[yii\web\ErrorHandler|error handler
]
] adjusts
the
error display according to the value of the constant
`YII_DEBUG`
.
When
`YII_DEBUG`
is true (meaning in debug mode), the error handler will display exceptions with detailed call
stack information and source code lines to help easier debugging. And when
`YII_DEBUG`
is false, only the error
message will be displayed to prevent
from revealing sensitive information of
the application.
message will be displayed to prevent
revealing sensitive information about
the application.
> Info: If an exception is a descendant of [[yii\base\UserException]], no call stack will be displayed regardless
the value of
`YII_DEBUG`
. This is because such exceptions are considered to be caused by user mistakes and the
...
...
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