package ru.micord.ervu.kafka.exception;

import org.springframework.context.support.MessageSourceAccessor;

import ru.cg.webbpm.modules.core.runtime.api.LocalizedException;
import ru.cg.webbpm.modules.core.runtime.api.MessageBundleUtils;

/**
 * @author Emir Suleimanov
 */
public class KafkaMessageReplyTimeoutException extends LocalizedException {
  private static final MessageSourceAccessor MESSAGE_SOURCE = MessageBundleUtils.createAccessor("messages/common_errors_messages");
  private static final String KAFKA_REPLY_TIMEOUT = "kafka_reply_timeout";

  public KafkaMessageReplyTimeoutException(Throwable cause) {
    super(KAFKA_REPLY_TIMEOUT, MESSAGE_SOURCE, cause);
  }
}
