Package com.tangosol.net.topic
Class TopicPublisherException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tangosol.net.topic.TopicException
com.tangosol.net.topic.TopicPublisherException
- All Implemented Interfaces:
Serializable
An exception that occurred during publishing of a message on a topic.
- Since:
- 21.06
- Author:
- Jonathan Knight 2021.06.03
- See Also:
-
Constructor Summary
ConstructorDescriptionTopicPublisherException
(String sMessage, Binary binValue, Serializer serializer) Create aTopicPublisherException
.TopicPublisherException
(String sMessage, Throwable cause, Binary binValue, Serializer serializer) Create aTopicPublisherException
.TopicPublisherException
(Throwable cause, Binary binValue, Serializer serializer) Create aTopicPublisherException
. -
Method Summary
Modifier and TypeMethodDescriptionstatic BiFunction
<Throwable, Binary, Throwable> createFactory
(Serializer serializer) Create a factory function that creates aTopicPublisherException
.static BiFunction
<Throwable, Binary, Throwable> createFactory
(Serializer serializer, String sReason) Create a factory function that creates aTopicPublisherException
.Returns the value that failed to be published in serializedBinary
format.getValue()
Returns the deserialized value that failed to be published.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TopicPublisherException
Create aTopicPublisherException
.- Parameters:
sMessage
- the exception messagebinValue
- the binary value that failed to be publishedserializer
- the serializer to deserialize the value
-
TopicPublisherException
Create aTopicPublisherException
.- Parameters:
cause
- the underlying cause of the exceptionbinValue
- the binary value that failed to be publishedserializer
- the serializer to deserialize the value
-
TopicPublisherException
public TopicPublisherException(String sMessage, Throwable cause, Binary binValue, Serializer serializer) Create aTopicPublisherException
.- Parameters:
sMessage
- the exception messagecause
- the underlying cause of the exceptionbinValue
- the binary value that failed to be publishedserializer
- the serializer to deserialize the value
-
-
Method Details
-
getBinaryValue
Returns the value that failed to be published in serializedBinary
format.- Returns:
- the value that failed to be published in serialized
Binary
format.
-
getValue
Returns the deserialized value that failed to be published.- Returns:
- the deserialized value that failed to be published
-
createFactory
Create a factory function that creates aTopicPublisherException
.- Parameters:
serializer
- the serializer to deserialize the value- Returns:
- a factory function that creates a
TopicPublisherException
-
createFactory
public static BiFunction<Throwable,Binary, createFactoryThrowable> (Serializer serializer, String sReason) Create a factory function that creates aTopicPublisherException
.- Parameters:
serializer
- the serializer to deserialize the valuesReason
- the reason message for the exception- Returns:
- a factory function that creates a
TopicPublisherException
-