Skip to content
Snippets Groups Projects
Commit 8c1fd109 authored by Rick Herrick's avatar Rick Herrick
Browse files

XNAT-4014 Changed handling of NrgServiceException to fix incorrect

status code, handle exception from XSync plugin correctly.
parent f02339b6
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ public class XapiRestControllerAdvice { ...@@ -40,7 +40,7 @@ public class XapiRestControllerAdvice {
@ExceptionHandler(NrgServiceException.class) @ExceptionHandler(NrgServiceException.class)
public ModelAndView handleNrgServiceException(final HttpServletRequest request, final NrgServiceException exception) { public ModelAndView handleNrgServiceException(final HttpServletRequest request, final NrgServiceException exception) {
return handleException(HttpStatus.CONFLICT, request, "An NRG service error occurred.", exception); return handleException(HttpStatus.INTERNAL_SERVER_ERROR, request, "An NRG service error occurred.", exception);
} }
@ExceptionHandler(URISyntaxException.class) @ExceptionHandler(URISyntaxException.class)
......
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