public class FieldTypesNotComparableException extends DRException
TypesNotComparableException
.
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
.
Constructor and Description |
---|
FieldTypesNotComparableException(GraphPath leftField,
GraphPath rightField,
TypesNotComparableException failure)
Constructs a
FieldTypesNotComparableException indicating
the specified paths, caused by the given failure. |
Modifier and Type | Method and 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.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FieldTypesNotComparableException(GraphPath leftField, GraphPath rightField, TypesNotComparableException failure)
FieldTypesNotComparableException
indicating
the specified paths, caused by the given failure.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 errorpublic String getMessage()
getMessage
in class Throwable
public GraphPath getLeftField()
See Field
for information about paths.
public TokenType getLeftType()
public GraphPath getRightField()
See Field
for information about paths.
public TokenType getRightType()
public TypesNotComparableException getCause()
Copyright © 2021 Actian Corporation. All rights reserved.