Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
bb9cd9ac
Commit
bb9cd9ac
authored
Jul 25, 2019
by
Piotr Gawron
Browse files
InvalidArgumentException shold rresult in 500
parent
1c4e1dc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
rest-api/src/main/java/lcsb/mapviewer/api/BaseController.java
View file @
bb9cd9ac
...
...
@@ -41,8 +41,7 @@ public abstract class BaseController {
}
else
if
(
e
instanceof
QueryException
||
e
instanceof
HttpMessageNotReadableException
||
e
instanceof
MissingServletRequestParameterException
||
e
instanceof
HttpMediaTypeNotSupportedException
||
e
instanceof
IllegalArgumentException
)
{
||
e
instanceof
HttpMediaTypeNotSupportedException
)
{
logger
.
error
(
e
,
e
);
return
createErrorResponse
(
"Query server error."
,
e
.
getMessage
(),
new
HttpHeaders
(),
HttpStatus
.
BAD_REQUEST
);
}
else
if
(
e
instanceof
ServletRequestBindingException
&&
e
.
getMessage
().
contains
(
Configuration
.
AUTH_TOKEN
))
{
...
...
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