Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
吴迪
gs1-office-web-sit
Commits
8664e7d7
Commit
8664e7d7
authored
Mar 17, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】异常处理
parent
67b55c69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
RRExceptionHandler.java
...n/java/io/office/common/exception/RRExceptionHandler.java
+12
-0
No files found.
src/main/java/io/office/common/exception/RRExceptionHandler.java
View file @
8664e7d7
...
@@ -52,9 +52,21 @@ public class RRExceptionHandler {
...
@@ -52,9 +52,21 @@ public class RRExceptionHandler {
return
R
.
error
(
"没有权限,请联系管理员授权"
);
return
R
.
error
(
"没有权限,请联系管理员授权"
);
}
}
@ExceptionHandler
(
IllegalArgumentException
.
class
)
public
R
handleIllegalArgumentException
(
IllegalArgumentException
e
){
logger
.
error
(
e
.
getMessage
(),
e
);
return
R
.
error
();
}
@ExceptionHandler
(
Exception
.
class
)
@ExceptionHandler
(
Exception
.
class
)
public
R
handleException
(
Exception
e
){
public
R
handleException
(
Exception
e
){
logger
.
error
(
e
.
getMessage
(),
e
);
logger
.
error
(
e
.
getMessage
(),
e
);
return
R
.
error
();
return
R
.
error
();
}
}
@ExceptionHandler
(
IllegalArgumentException
.
class
)
public
R
handleException
(
IllegalArgumentException
e
){
logger
.
error
(
e
.
getMessage
(),
e
);
return
R
.
error
();
}
}
}
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