Class ReactiveMessageSendingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.pulsar.reactive.client.api.ReactiveMessageSendingException
-
- All Implemented Interfaces:
java.io.Serializable
public class ReactiveMessageSendingException extends java.lang.RuntimeExceptionA wrapper exception used byReactiveMessageSender.sendMany(Publisher). ThegetMessageSpec()method will return the message that failed to be sent.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReactiveMessageSendingException(java.lang.Throwable cause, MessageSpec<?> messageSpec)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablefillInStackTrace()<C> CgetCorrelationMetadata()Returns the correlation metadata of the message that failed to be sent.java.lang.StringgetMessage()MessageSpec<?>getMessageSpec()Returns the message that failed to be sent.
-
-
-
Constructor Detail
-
ReactiveMessageSendingException
public ReactiveMessageSendingException(java.lang.Throwable cause, MessageSpec<?> messageSpec)Creates a new instance.- Parameters:
cause- the cause of the failuremessageSpec- the message that failed to be sent
-
-
Method Detail
-
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
- Overrides:
fillInStackTracein classjava.lang.Throwable
-
getMessageSpec
public MessageSpec<?> getMessageSpec()
Returns the message that failed to be sent.- Returns:
- the message that failed to be sent.
-
getCorrelationMetadata
public <C> C getCorrelationMetadata()
Returns the correlation metadata of the message that failed to be sent.- Type Parameters:
C- the correlation metadata type- Returns:
- the correlation metadata of the message that failed to be sent.
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-