-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring for review comments #EA-3575
- Loading branch information
Showing
8 changed files
with
36 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
translation-web/src/main/java/eu/europeana/api/translation/web/I18nErrorMessageKeys.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package eu.europeana.api.translation.web; | ||
|
||
public interface I18nErrorMessageKeys { | ||
|
||
//error keys for the exceptions messages | ||
static final String ERROR_MANDATORY_PARAM_EMPTY = "error.mandatory_param_empty"; | ||
static final String ERROR_INVALID_PARAM_VALUE = "error.invalid_param_value"; | ||
static final String ERROR_UNSUPPORTED_LANG = "error.unsupported_language"; | ||
static final String ERROR_GOOGLE_QUOTA_LIMIT = "error.google_quota_limit_reached"; | ||
static final String ERROR_TRANSLATION_SERVICE_CALL = "error.translation.external_service_call"; | ||
static final String ERROR_LANG_DETECT_SERVICE_CALL = "error.detection.external_service_call"; | ||
} |
4 changes: 2 additions & 2 deletions
4
translation-web/src/main/java/eu/europeana/api/translation/web/LangDetectionController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
translation-web/src/main/java/eu/europeana/api/translation/web/service/BaseWebService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters