StreamingQueryException (Spark 4.2.0 JavaDoc)
- All Implemented Interfaces:
Serializable,SparkThrowable
Exception that stopped a StreamingQuery. Use cause get the actual exception
that caused the failure.
param: message Message of this exception
param: cause Internal cause of this exception
param: startOffset Starting offset in json of the range of data in which exception occurred
param: endOffset Ending offset in json of the range of data in exception occurred
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
Constructors
-
Method Summary
cause()Succinct, human-readable, unique, and consistent representation of the error condition.
================================================ Server side exceptions should override this method and use a provided SQL state property instead.
message()longtime()Time when the exception occurred
toString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
Method Details
-
message
-
cause
-
startOffset
public String startOffset()
-
endOffset
public String endOffset()
-
time
public long time()
Time when the exception occurred
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
toString
-
getCondition
public String getCondition()
Succinct, human-readable, unique, and consistent representation of the error condition. If null, error condition is not set.
- Specified by:
getConditionin interfaceSparkThrowable
-
getSqlState
public String getSqlState()
================================================ Server side exceptions should override this method and use a provided SQL state property instead. ================================================
- Specified by:
getSqlStatein interfaceSparkThrowable
-
getMessageParameters
- Specified by:
getMessageParametersin interfaceSparkThrowable
-