Skip to content
Snippets Groups Projects
Commit bb9cd9ac authored by Piotr Gawron's avatar Piotr Gawron
Browse files

InvalidArgumentException shold rresult in 500

parent 1c4e1dc8
No related branches found
No related tags found
1 merge request!859Resolve "deprecacy information for data overlay"
...@@ -41,8 +41,7 @@ public abstract class BaseController { ...@@ -41,8 +41,7 @@ public abstract class BaseController {
} else if (e instanceof QueryException } else if (e instanceof QueryException
|| e instanceof HttpMessageNotReadableException || e instanceof HttpMessageNotReadableException
|| e instanceof MissingServletRequestParameterException || e instanceof MissingServletRequestParameterException
|| e instanceof HttpMediaTypeNotSupportedException || e instanceof HttpMediaTypeNotSupportedException) {
|| e instanceof IllegalArgumentException) {
logger.error(e, e); logger.error(e, e);
return createErrorResponse("Query server error.", e.getMessage(), new HttpHeaders(), HttpStatus.BAD_REQUEST); return createErrorResponse("Query server error.", e.getMessage(), new HttpHeaders(), HttpStatus.BAD_REQUEST);
} else if (e instanceof ServletRequestBindingException && e.getMessage().contains(Configuration.AUTH_TOKEN)) { } else if (e instanceof ServletRequestBindingException && e.getMessage().contains(Configuration.AUTH_TOKEN)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment