Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
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
QianQiXiang
haoban-manage3.0
Commits
08b7b12b
Commit
08b7b12b
authored
Apr 16, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步通讯录 微信同步gic
parent
659b2832
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
GlobalExceptionHandler.java
...c/haoban/manage/web/exception/GlobalExceptionHandler.java
+2
-0
GlobalExceptionHandler.java
...c/haoban/manage/web/exception/GlobalExceptionHandler.java
+1
-1
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/exception/GlobalExceptionHandler.java
View file @
08b7b12b
...
@@ -32,6 +32,8 @@ public class GlobalExceptionHandler extends WebBaseController {
...
@@ -32,6 +32,8 @@ public class GlobalExceptionHandler extends WebBaseController {
@ResponseBody
@ResponseBody
@ExceptionHandler
(
RuntimeException
.
class
)
@ExceptionHandler
(
RuntimeException
.
class
)
public
HaobanResponse
ControllerException
(
HttpServletResponse
response
,
RuntimeException
ex
)
{
public
HaobanResponse
ControllerException
(
HttpServletResponse
response
,
RuntimeException
ex
)
{
logger
.
info
(
"exceoprion:{}"
,
ex
.
getStackTrace
());
ex
.
printStackTrace
();
HaobanResponse
res
=
new
HaobanResponse
();
HaobanResponse
res
=
new
HaobanResponse
();
res
.
setErrorCode
(
HaoBanErrCode
.
ERR_3
.
getCode
());
res
.
setErrorCode
(
HaoBanErrCode
.
ERR_3
.
getCode
());
String
message
=
ex
.
getMessage
();
String
message
=
ex
.
getMessage
();
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/exception/GlobalExceptionHandler.java
View file @
08b7b12b
...
@@ -59,7 +59,7 @@ public class GlobalExceptionHandler extends WebBaseController {
...
@@ -59,7 +59,7 @@ public class GlobalExceptionHandler extends WebBaseController {
@ResponseBody
@ResponseBody
@ExceptionHandler
(
Exception
.
class
)
@ExceptionHandler
(
Exception
.
class
)
public
HaobanResponse
ControllerException
(
HttpServletResponse
response
,
Exception
ex
)
{
public
HaobanResponse
ControllerException
(
HttpServletResponse
response
,
Exception
ex
)
{
logger
.
error
(
"err
"
);
logger
.
error
(
"err
:"
,
ex
.
getMessage
()
);
ex
.
printStackTrace
();
ex
.
printStackTrace
();
HaoBanErrCode
errCode
=
HaoBanErrCode
.
ERR_3
;
HaoBanErrCode
errCode
=
HaoBanErrCode
.
ERR_3
;
StringBuilder
sb
=
new
StringBuilder
();
StringBuilder
sb
=
new
StringBuilder
();
...
...
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