Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-finance
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
base_platform_enterprise
gic-platform-finance
Commits
befc7cc2
Commit
befc7cc2
authored
Sep 27, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常类调整
parent
2ea6edbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
GlobalExceptionHandler.java
...com/gic/finance/web/exception/GlobalExceptionHandler.java
+0
-11
No files found.
gic-platform-finance-web/src/main/java/com/gic/finance/web/exception/GlobalExceptionHandler.java
View file @
befc7cc2
...
@@ -20,7 +20,6 @@ import org.springframework.web.bind.annotation.ResponseBody;
...
@@ -20,7 +20,6 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.exception.CommonException
;
import
com.gic.enterprise.exception.CommonException
;
import
com.gic.store.exception.StoreException
;
/**
/**
* 全局异常处理类
* 全局异常处理类
...
@@ -82,16 +81,6 @@ public class GlobalExceptionHandler {
...
@@ -82,16 +81,6 @@ public class GlobalExceptionHandler {
return
getRestResponse
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
getFailFastMsg
(
paramName
,
paramError
));
return
getRestResponse
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
getFailFastMsg
(
paramName
,
paramError
));
}
}
/**
* 自定义异常统一处理
* @param e
* @return
*/
@ResponseBody
@ExceptionHandler
(
StoreException
.
class
)
public
RestResponse
customException
(
StoreException
e
)
{
return
getRestResponse
(
e
.
getErrorCode
(),
e
.
getMessage
());
}
@ResponseBody
@ResponseBody
@ExceptionHandler
(
CommonException
.
class
)
@ExceptionHandler
(
CommonException
.
class
)
public
RestResponse
customException
(
CommonException
e
)
{
public
RestResponse
customException
(
CommonException
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