Class CoherenceSubscriberException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.oracle.coherence.spring.messaging.exceptions.CoherenceSubscriberException
- All Implemented Interfaces:
Serializable
Exception thrown for subscriber errors.
- Since:
- 3.0
- Author:
- Jonathan Knight
- See Also:
-
Constructor Summary
ConstructorDescriptionCoherenceSubscriberException
(String message, Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element) Creates a new exception.CoherenceSubscriberException
(String message, Throwable cause, Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element) Creates a new exception.CoherenceSubscriberException
(Throwable cause, Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element) Creates a new exception. -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.tangosol.net.topic.Subscriber.Element<?>>
Return the element that was being processed that caused the error.com.tangosol.net.topic.Subscriber<?>
Return the consumer that produced the error.Return The bean that is the kafka listener.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CoherenceSubscriberException
public CoherenceSubscriberException(String message, Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element) Creates a new exception.- Parameters:
message
- the messagelistener
- the listenerkafkaConsumer
- the consumerelement
- the consumer record
-
CoherenceSubscriberException
public CoherenceSubscriberException(String message, Throwable cause, Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element) Creates a new exception.- Parameters:
message
- the messagecause
- the causelistener
- the listenerkafkaConsumer
- the consumerelement
- the consumer record
-
CoherenceSubscriberException
public CoherenceSubscriberException(Throwable cause, Object listener, com.tangosol.net.topic.Subscriber<?> kafkaConsumer, com.tangosol.net.topic.Subscriber.Element<?> element) Creates a new exception.- Parameters:
cause
- the causelistener
- the listenerkafkaConsumer
- the consumerelement
- the consumer record
-
-
Method Details
-
getKafkaListener
Return The bean that is the kafka listener.- Returns:
- the bean that is the kafka listener
-
getKafkaConsumer
public com.tangosol.net.topic.Subscriber<?> getKafkaConsumer()Return the consumer that produced the error.- Returns:
- the consumer that produced the error
-
getElement
Return the element that was being processed that caused the error.- Returns:
- the element that was being processed that caused the error
-