Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
schbrain-parent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
schbrain-parent
Commits
5c88a6f0
Commit
5c88a6f0
authored
May 10, 2023
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed duplicated MethodArgumentNotValidException handing
MethodArgumentNotValidException is extend BindException now
parent
a572c68b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
commons/web-common/src/main/java/com/schbrain/common/web/exception/DefaultGlobalExceptionHandler.java
...n/common/web/exception/DefaultGlobalExceptionHandler.java
+0
-7
No files found.
commons/web-common/src/main/java/com/schbrain/common/web/exception/DefaultGlobalExceptionHandler.java
View file @
5c88a6f0
...
@@ -178,13 +178,6 @@ public class DefaultGlobalExceptionHandler implements GlobalExceptionHandler {
...
@@ -178,13 +178,6 @@ public class DefaultGlobalExceptionHandler implements GlobalExceptionHandler {
return
buildResponse
(
ex
,
PARAM_INVALID
,
errorMsg
);
return
buildResponse
(
ex
,
PARAM_INVALID
,
errorMsg
);
}
}
@ExceptionHandler
(
MethodArgumentNotValidException
.
class
)
public
ResponseDTO
<
String
>
handleMethodArgumentNotValidException
(
MethodArgumentNotValidException
ex
)
{
String
errorMsg
=
buildBindingErrorMsg
(
ex
.
getBindingResult
());
log
.
error
(
errorMsg
);
return
buildResponse
(
ex
,
PARAM_INVALID
,
errorMsg
);
}
@ExceptionHandler
(
ConstraintViolationException
.
class
)
@ExceptionHandler
(
ConstraintViolationException
.
class
)
public
ResponseDTO
<
String
>
handleConstraintViolationException
(
ConstraintViolationException
ex
)
{
public
ResponseDTO
<
String
>
handleConstraintViolationException
(
ConstraintViolationException
ex
)
{
String
errorMsg
=
buildBindingErrorMsg
(
ex
.
getConstraintViolations
());
String
errorMsg
=
buildBindingErrorMsg
(
ex
.
getConstraintViolations
());
...
...
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