mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-03 10:54:58 +01:00
Clean up.
This commit is contained in:
parent
538083ae83
commit
d26b516eb9
@ -64,7 +64,6 @@ public class BaseController {
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
@ResponseBody
|
||||
public RestErrors handleClientErrors(@NotNull IllegalArgumentException ex) {
|
||||
logger.error(ex.getMessage(), ex);
|
||||
return new RestErrors(ex.getMessage(), Severity.WARNING);
|
||||
}
|
||||
|
||||
@ -99,7 +98,6 @@ public class BaseController {
|
||||
@ExceptionHandler(ClientException.class)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
public RestErrors handleClientErrors(@NotNull ClientException ex) {
|
||||
logger.error(ex.getMessage(), ex);
|
||||
final Locale locale = LocaleContextHolder.getLocale();
|
||||
return new RestErrors(ex.getMessage(messageSource, locale), ex.getSeverity(), ex.getTechInfo());
|
||||
}
|
||||
@ -132,7 +130,6 @@ public class BaseController {
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
@ResponseBody
|
||||
public RestErrors handleRegistrationErrors(@NotNull RegistrationException ex) {
|
||||
logger.error(ex.getMessage(), ex);
|
||||
return new RestErrors(ex, messageSource);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user