Class LocalizedInterceptorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.hybris.platform.servicelayer.exceptions.BusinessException
-
- de.hybris.platform.servicelayer.interceptor.InterceptorException
-
- de.hybris.platform.integrationservices.exception.LocalizedInterceptorException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CannotCreateIntegrationClientCredentialsDetailWithAdminException,CannotDeleteIntegrationObjectException
public abstract class LocalizedInterceptorException extends InterceptorException
An exception with localized message that is thrown by an interceptor.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLocalizedInterceptorException(java.lang.String message, java.lang.String... parameters)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.StringgetBundleKey()For each exception that extends this exception, it has to specify the bundle key with which the localized error message could be retrieved from the bundle resource.protected L10NServicegetL10nService()It returns a localization service that offers localized error messages for this exception.java.lang.StringgetLocalizedMessage()-
Methods inherited from class de.hybris.platform.servicelayer.interceptor.InterceptorException
getInterceptor, getMessage, setInterceptor
-
-
-
-
Constructor Detail
-
LocalizedInterceptorException
protected LocalizedInterceptorException(java.lang.String message, java.lang.String... parameters)- Parameters:
message- The error message of this exception. This message is assigned in exceptions that extend this one and is used to clarify its meaning.parameters- The parameters that are used for interpolation. The localized error messages returned by localization service may contain one or more placeholders and need to be evaluated with given parameters.
-
-
Method Detail
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classjava.lang.Throwable
-
getL10nService
protected L10NService getL10nService()
It returns a localization service that offers localized error messages for this exception.- Returns:
- a localization service or null if the service is not available.
-
getBundleKey
protected abstract java.lang.String getBundleKey()
For each exception that extends this exception, it has to specify the bundle key with which the localized error message could be retrieved from the bundle resource.- Returns:
- bundle key.
-
-