Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
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
chenhao
hel-developer-guide
Commits
19f226ec
Commit
19f226ec
authored
Jul 28, 2017
by
yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update codeStyle.md
parent
f3b103f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
codeStyle.md
codeStyle.md
+3
-3
No files found.
codeStyle.md
View file @
19f226ec
...
...
@@ -30,10 +30,10 @@ if(user.getStatus() == EXPIRED_USER_STATUS){
12.
部分异常若是上层(调用层)不能解决,则不允许抛出。最外层若是出现异常必须自行处理,不可将异常信息直接展示给用户。
13.
所有的日志信息
**不允许使用System.out.println**
输出,异常的日志信息使用
**log.error**
打印时,必须使用重载方法将捕获的异常作为第二个参数。如:
```
java
try
{
try
{
// throw some exceptions
}
catch
(
IOException
e
){
logger
.
error
(
e
.
getMessage
(),
e
);
}
catch
(
IOException
e
){
logger
.
error
(
e
.
getMessage
(),
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