Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServerException serverException;
- if (exception == null || !ServerException.class.isInstance(exception)) {
- serverException = new ServerException(ServerExceptionType.GENERIC);
- } else {
- serverException = (ServerException) exception;
- if (!serverException.shouldHaveLocalization())
- serverException = new ServerException(ServerExceptionType.GENERIC);
- }
- Locale locale = MessageUtils.getCurrentLocale(request);
- String title = serverException.getTitle(locale);
- String message = serverException.getMessage(locale);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement