Class StreamsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.kafka.common.KafkaException
org.apache.kafka.streams.errors.StreamsException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BrokerNotFoundException,InternalTopicsAlreadySetupException,InvalidStateStoreException,LockException,MisconfiguredInternalTopicException,MissingInternalTopicsException,MissingSourceTopicException,ProcessorStateException,TaskAssignmentException,TaskCorruptedException,TaskIdFormatException,TaskMigratedException,TopologyException,UnknownTopologyException
public class StreamsExceptionextends org.apache.kafka.common.KafkaException
StreamsException is the top-level exception type generated by Kafka Streams, and indicates errors have occurred during a StreamThread's processing. It is guaranteed that any exception thrown up to the StreamsUncaughtExceptionHandler will be of the type StreamsException. For example, any user exceptions will be wrapped as a StreamsException.- See Also:
Constructor Summary
ConstructorsConstructorDescriptionStreamsException(String message) StreamsException(String message, Throwable throwable) StreamsException(String message, Throwable throwable, TaskId taskId) StreamsException(String message, TaskId taskId) StreamsException(Throwable throwable) StreamsException(Throwable throwable, TaskId taskId) Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Details
StreamsException
StreamsException
StreamsException
StreamsException
StreamsException
StreamsException
Method Details
taskId
- Returns:
- The
TaskIdthat this exception originated from, orOptional.empty()if the exception cannot be traced back to a particular task. Note that theTaskIdbeing empty does not guarantee that the exception wasn't directly related to a specific task.
setTaskId