Class TranslationFailureResponse
java.lang.Object
com.lokalized.TranslationFailureResponse
Response returned by a
TranslationFailureHandler.- Since:
- 3.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionReturns the lookup key itself after interpolating supplied placeholders into it.returnString(@NonNull String translation) Returns a caller-specified string.Throws an exception for the failed lookup.
-
Method Details
-
returnKey
Returns the lookup key itself after interpolating supplied placeholders into it.- Returns:
- the response, not null
-
returnString
Returns a caller-specified string.- Parameters:
translation- translation to return, not null- Returns:
- the response, not null
-
throwException
Throws an exception for the failed lookup.Resolution failures rethrow their original runtime cause. Missing translations and lookups for which no alternative matched throw
MissingTranslationException.- Returns:
- the response, not null
-