- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.pervasive.datarush.exceptions.DRException
-
- com.pervasive.datarush.types.FieldTypesNotComparableException
-
- All Implemented Interfaces:
Serializable
public class FieldTypesNotComparableException extends DRException
Unchecked exception thrown when an attempt is made to compare two fields of incompatible types in a record schema. The fields and types are indicated as is the causingTypesNotComparableException
.Note that comparison of record types is done by comparing schemas positionally. That is, fields are compared by type in the order in which they appear in the schema. This exception is thrown during this comparison process and is generally seen as the cause of a
TypesNotComparableException
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FieldTypesNotComparableException(GraphPath leftField, GraphPath rightField, TypesNotComparableException failure)
Constructs aFieldTypesNotComparableException
indicating the specified paths, caused by the given failure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypesNotComparableException
getCause()
GraphPath
getLeftField()
Gets the path of the field on the left side of the comparison which raised this exception.TokenType
getLeftType()
Gets the type of the field on the left side of the comparison which raised this exception.String
getMessage()
GraphPath
getRightField()
Gets the path of the field on the right side of the comparison which raised this exception.TokenType
getRightType()
Gets the type of the field on the right side of the comparison which raised this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FieldTypesNotComparableException
public FieldTypesNotComparableException(GraphPath leftField, GraphPath rightField, TypesNotComparableException failure)
Constructs aFieldTypesNotComparableException
indicating the specified paths, caused by the given failure.- Parameters:
leftField
- the path of the field on the left side of the comparisonrightField
- the path of the field on the right side of the comparisonfailure
- the underlying type error
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getLeftField
public GraphPath getLeftField()
Gets the path of the field on the left side of the comparison which raised this exception.See
Field
for information about paths.- Returns:
- the path of the field on the left side of the comparison
-
getLeftType
public TokenType getLeftType()
Gets the type of the field on the left side of the comparison which raised this exception.- Returns:
- the type of the field on the left side of the comparison
-
getRightField
public GraphPath getRightField()
Gets the path of the field on the right side of the comparison which raised this exception.See
Field
for information about paths.- Returns:
- the path of the field on the right side of the comparison
-
getRightType
public TokenType getRightType()
Gets the type of the field on the right side of the comparison which raised this exception.- Returns:
- the type of the field on the right side of the comparison
-
getCause
public TypesNotComparableException getCause()
-
-