Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
c4ebf465
Commit
c4ebf465
authored
Feb 25, 2025
by
xuepeng.chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数校验的异常不往sentry报
parent
966569f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
CustomSentryExceptionResolver.java
...oup/xyqb/config/sentry/CustomSentryExceptionResolver.java
+3
-1
No files found.
src/main/java/cn/quantgroup/xyqb/config/sentry/CustomSentryExceptionResolver.java
View file @
c4ebf465
...
@@ -7,6 +7,7 @@ import io.sentry.event.interfaces.ExceptionInterface;
...
@@ -7,6 +7,7 @@ import io.sentry.event.interfaces.ExceptionInterface;
import
org.slf4j.MDC
;
import
org.slf4j.MDC
;
import
org.springframework.core.Ordered
;
import
org.springframework.core.Ordered
;
import
org.springframework.security.authentication.BadCredentialsException
;
import
org.springframework.security.authentication.BadCredentialsException
;
import
org.springframework.web.bind.MethodArgumentNotValidException
;
import
org.springframework.web.servlet.HandlerExceptionResolver
;
import
org.springframework.web.servlet.HandlerExceptionResolver
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.ModelAndView
;
...
@@ -28,7 +29,8 @@ public class CustomSentryExceptionResolver implements HandlerExceptionResolver,
...
@@ -28,7 +29,8 @@ public class CustomSentryExceptionResolver implements HandlerExceptionResolver,
Exception
ex
)
{
Exception
ex
)
{
// TODO: 2020/2/4 临时测试,后期修改成通用。
// TODO: 2020/2/4 临时测试,后期修改成通用。
if
(
ex
instanceof
SilentBizException
||
ex
instanceof
VerificationCodeErrorException
||
ex
instanceof
DataException
||
ex
instanceof
UserRegisterLoginException
if
(
ex
instanceof
SilentBizException
||
ex
instanceof
VerificationCodeErrorException
||
ex
instanceof
DataException
||
ex
instanceof
UserRegisterLoginException
||
ex
instanceof
AppletException
||
ex
instanceof
AccessForbiddenException
||
ex
instanceof
PasswordErrorLimitException
||
ex
instanceof
BadCredentialsException
)
{
||
ex
instanceof
AppletException
||
ex
instanceof
AccessForbiddenException
||
ex
instanceof
PasswordErrorLimitException
||
ex
instanceof
BadCredentialsException
||
ex
instanceof
MethodArgumentNotValidException
)
{
return
null
;
return
null
;
}
}
...
...
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