Class MissingTranslationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.lokalized.MissingTranslationException
- All Implemented Interfaces:
Serializable
Exception thrown when no translation is found when
DefaultStrings.FailureMode is configured to be DefaultStrings.FailureMode.FAIL_FAST.
In production, you would normally prefer DefaultStrings.FailureMode.USE_FALLBACK.
This class is intended for use by a single thread.
- Author:
- Mark Allen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()The translation key that triggered this exception.The locale that triggered this exception.The placeholders specified for the failed translation attempt.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingTranslationException
public MissingTranslationException(@NonNull String message, @NonNull String key, @NonNull Map<@NonNull String, @Nullable Object> placeholders, @NonNull Locale locale) Constructs a new exception with the unsupported locale.- Parameters:
locale- the unsupported locale which triggered this exception, not null
-
-
Method Details
-
getKey
-
getPlaceholders
-
getLocale
-