Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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-store
Commits
8f75d9b3
Commit
8f75d9b3
authored
Sep 27, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常类调整
parent
05ddcb12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
44 deletions
+2
-44
StoreException.java
...src/main/java/com/gic/store/exception/StoreException.java
+0
-21
StoreGroupException.java
...ain/java/com/gic/store/exception/StoreGroupException.java
+0
-21
CommonResultControllerUtils.java
...java/com/gic/store/utils/CommonResultControllerUtils.java
+2
-2
No files found.
gic-store-api/src/main/java/com/gic/store/exception/StoreException.java
deleted
100644 → 0
View file @
05ddcb12
package
com
.
gic
.
store
.
exception
;
/**
* 自定义异常code和message
* @ClassName: StoreException
* @Description: 自定义异常code和message
* @author guojuxing
* @date 2019/6/26 2:03 PM
*/
public
class
StoreException
extends
RuntimeException
{
private
String
errorCode
;
public
StoreException
(
String
errorCode
,
String
message
)
{
super
(
message
);
this
.
errorCode
=
errorCode
;
}
public
String
getErrorCode
()
{
return
errorCode
;
}
}
gic-store-api/src/main/java/com/gic/store/exception/StoreGroupException.java
deleted
100644 → 0
View file @
05ddcb12
package
com
.
gic
.
store
.
exception
;
/**
* 门店分组自定义异常code和message
* @ClassName: StoreGroupException
* @Description: 门店分组自定义异常code和message
* @author guojuxing
* @date 2019/6/26 2:03 PM
*/
public
class
StoreGroupException
extends
RuntimeException
{
private
String
errorCode
;
public
StoreGroupException
(
String
errorCode
,
String
message
)
{
super
(
message
);
this
.
errorCode
=
errorCode
;
}
public
String
getErrorCode
()
{
return
errorCode
;
}
}
gic-store-api/src/main/java/com/gic/store/utils/CommonResultControllerUtils.java
View file @
8f75d9b3
package
com
.
gic
.
store
.
utils
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.
store.exception.Store
Exception
;
import
com.gic.
enterprise.exception.Common
Exception
;
/**
* controller端统一返回工具方法
...
...
@@ -16,7 +16,7 @@ public class CommonResultControllerUtils {
if
(
response
.
isSuccess
())
{
return
response
.
getResult
();
}
else
{
throw
new
Store
Exception
(
response
.
getCode
(),
response
.
getMessage
());
throw
new
Common
Exception
(
response
.
getCode
(),
response
.
getMessage
());
}
}
}
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