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
482e56da
Commit
482e56da
authored
Oct 05, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finished error handling guide [skip ci]
parent
c273e066
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
rest-error-handling.md
docs/guide/rest-error-handling.md
+0
-1
runtime-handling-errors.md
docs/guide/runtime-handling-errors.md
+0
-0
runtime-logging.md
docs/guide/runtime-logging.md
+4
-0
translation-status.md
docs/internals/translation-status.md
+2
-2
No files found.
docs/guide/rest-error-handling.md
View file @
482e56da
...
@@ -49,7 +49,6 @@ Sometimes you may want to customize the default error response format. For examp
...
@@ -49,7 +49,6 @@ Sometimes you may want to customize the default error response format. For examp
using different HTTP statuses to indicate different errors, you would like to always use 200 as HTTP status
using different HTTP statuses to indicate different errors, you would like to always use 200 as HTTP status
and enclose the actual HTTP status code as part of the JSON structure in the response, like shown in the following,
and enclose the actual HTTP status code as part of the JSON structure in the response, like shown in the following,
```
```
HTTP/1.1 200 OK
HTTP/1.1 200 OK
Date: Sun, 02 Mar 2014 05:31:43 GMT
Date: Sun, 02 Mar 2014 05:31:43 GMT
...
...
docs/guide/runtime-handling-errors.md
View file @
482e56da
This diff is collapsed.
Click to expand it.
docs/guide/runtime-logging.md
View file @
482e56da
...
@@ -162,6 +162,10 @@ under the categories whose names match either `yii\db\*` or `yii\web\HttpExcepti
...
@@ -162,6 +162,10 @@ under the categories whose names match either `yii\db\*` or `yii\web\HttpExcepti
]
]
```
```
> Info: When an HTTP exception is caught by the [error handler](runtime-handling-errors.md), an error message
will be logged with the category name in the format of `
yii
\w
eb
\H
ttpException:ErrorCode
`. For example,
the [[yii\web\NotFoundHttpException]] will cause an error message of category `
yii
\w
eb
\H
ttpException:404
`.
### Message Formatting <a name="message-formatting"></a>
### Message Formatting <a name="message-formatting"></a>
...
...
docs/internals/translation-status.md
View file @
482e56da
...
@@ -32,8 +32,8 @@ runtime-requests.md | Yes
...
@@ -32,8 +32,8 @@ runtime-requests.md | Yes
runtime-responses.md | Yes
runtime-responses.md | Yes
runtime-sessions-cookies.md | Yes
runtime-sessions-cookies.md | Yes
runtime-url-handling.md |
runtime-url-handling.md |
runtime-handling-errors.md |
runtime-handling-errors.md |
Yes
runtime-logging.md |
runtime-logging.md |
Yes
concept-components.md | Yes
concept-components.md | Yes
concept-properties.md | Yes
concept-properties.md | Yes
concept-events.md | Yes
concept-events.md | Yes
...
...
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