Class PartitionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.flink.runtime.io.network.partition.PartitionException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PartitionConnectionException,PartitionNotFoundException
public abstract class PartitionException extends IOException
Exception for covering all the scenarios of consuming partition failure which causes the consumer task failed, and the job master would decide whether to restart the producer based on this exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PartitionException(String message, ResultPartitionID partitionId)PartitionException(String message, ResultPartitionID partitionId, Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultPartitionIDgetPartitionId()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PartitionException
public PartitionException(String message, ResultPartitionID partitionId)
-
PartitionException
public PartitionException(String message, ResultPartitionID partitionId, Throwable throwable)
-
-
Method Detail
-
getPartitionId
public ResultPartitionID getPartitionId()
-
-