Package org.apache.spark.sql
Class AnalysisException
- All Implemented Interfaces:
Serializable
,SparkThrowable
,org.apache.spark.sql.catalyst.trees.WithOrigin
,scala.Serializable
public class AnalysisException
extends Exception
implements SparkThrowable, scala.Serializable, org.apache.spark.sql.catalyst.trees.WithOrigin
Thrown when a query fails to analyze, usually because the query itself is invalid.
- Since:
- 1.3.0
- See Also:
-
Constructor Summary
ConstructorDescriptionAnalysisException
(String errorClass, scala.collection.immutable.Map<String, String> messageParameters) AnalysisException
(String errorClass, scala.collection.immutable.Map<String, String> messageParameters, QueryContext[] context, String summary) AnalysisException
(String errorClass, scala.collection.immutable.Map<String, String> messageParameters, org.apache.spark.sql.catalyst.trees.Origin origin) AnalysisException
(String errorClass, scala.collection.immutable.Map<String, String> messageParameters, org.apache.spark.sql.catalyst.trees.Origin origin, scala.Option<Throwable> cause) AnalysisException
(String errorClass, scala.collection.immutable.Map<String, String> messageParameters, scala.Option<Throwable> cause) -
Method Summary
Modifier and TypeMethodDescriptionscala.Option<Throwable>
cause()
context()
copy
(String message, scala.Option<Object> line, scala.Option<Object> startPosition, scala.Option<Throwable> cause, scala.Option<String> errorClass, scala.collection.immutable.Map<String, String> messageParameters, QueryContext[] context) scala.Option<String>
scala.Option<Object>
line()
message()
org.apache.spark.sql.catalyst.trees.Origin
origin()
scala.Option<Object>
withPosition
(org.apache.spark.sql.catalyst.trees.Origin origin) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.spark.SparkThrowable
getSqlState, isInternalError
-
Constructor Details
-
AnalysisException
-
AnalysisException
public AnalysisException(String errorClass, scala.collection.immutable.Map<String, String> messageParameters, QueryContext[] context, String summary) -
AnalysisException
-
AnalysisException
-
AnalysisException
-
-
Method Details
-
message
-
line
-
startPosition
-
cause
-
errorClass
-
messageParameters
-
context
-
copy
public AnalysisException copy(String message, scala.Option<Object> line, scala.Option<Object> startPosition, scala.Option<Throwable> cause, scala.Option<String> errorClass, scala.collection.immutable.Map<String, String> messageParameters, QueryContext[] context) -
withPosition
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getSimpleMessage
-
getMessageParameters
- Specified by:
getMessageParameters
in interfaceSparkThrowable
-
getErrorClass
- Specified by:
getErrorClass
in interfaceSparkThrowable
-
getQueryContext
- Specified by:
getQueryContext
in interfaceSparkThrowable
-
origin
public org.apache.spark.sql.catalyst.trees.Origin origin()- Specified by:
origin
in interfaceorg.apache.spark.sql.catalyst.trees.WithOrigin
-