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