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
public class TopicPublisherException extends TopicException
An exception that occurred during publishing of a message on a topic.- Since:
 - 21.06
 - Author:
 - Jonathan Knight 2021.06.03
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description TopicPublisherException(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.BinarygetBinaryValue()Returns the value that failed to be published in serializedBinaryformat.ObjectgetValue()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 Detail
- 
TopicPublisherException
public TopicPublisherException(String sMessage, Binary binValue, Serializer serializer)
Create aTopicPublisherException.- Parameters:
 sMessage- the exception messagebinValue- the binary value that failed to be publishedserializer- the serializer to deserialize the value
 
- 
TopicPublisherException
public TopicPublisherException(Throwable cause, Binary binValue, Serializer serializer)
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 Detail
- 
getBinaryValue
public Binary getBinaryValue()
Returns the value that failed to be published in serializedBinaryformat.- Returns:
 - the value that failed to be published in serialized 
Binaryformat. 
 
- 
getValue
public Object getValue()
Returns the deserialized value that failed to be published.- Returns:
 - the deserialized value that failed to be published
 
 
- 
createFactory
public static BiFunction<Throwable,Binary,Throwable> createFactory(Serializer serializer)
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,Throwable> createFactory(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 
 
 - 
 
 -