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.RuntimeException
A 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.Throwable
fillInStackTrace()
<C> C
getCorrelationMetadata()
Returns the correlation metadata of the message that failed to be sent.java.lang.String
getMessage()
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:
fillInStackTrace
in 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:
getMessage
in classjava.lang.Throwable
-
-