Class LocalizedInterceptorException

All Implemented Interfaces:
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:
  • Constructor Details

    • LocalizedInterceptorException

      protected LocalizedInterceptorException(String message, 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 Details

    • getParameters

      @NotNull public @NotNull Object[] getParameters()
      Returns parameters in the context of this exception. Each subclass can specify its own parameters that will be used for making localized messages.
      Returns:
      parameters associated with this exception or an empty array, if there are no parameters.