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
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 causing
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFieldTypesNotComparableException(GraphPath leftField, GraphPath rightField, TypesNotComparableException failure) Constructs aFieldTypesNotComparableExceptionindicating the specified paths, caused by the given failure. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Gets the path of the field on the left side of the comparison which raised this exception.Gets the type of the field on the left side of the comparison which raised this exception.Gets the path of the field on the right side of the comparison which raised this exception.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 Details
-
FieldTypesNotComparableException
public FieldTypesNotComparableException(GraphPath leftField, GraphPath rightField, TypesNotComparableException failure) Constructs aFieldTypesNotComparableExceptionindicating 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 Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getLeftField
Gets the path of the field on the left side of the comparison which raised this exception.See
Fieldfor information about paths.- Returns:
- the path of the field on the left side of the comparison
-
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
Gets the path of the field on the right side of the comparison which raised this exception.See
Fieldfor information about paths.- Returns:
- the path of the field on the right side of the comparison
-
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
-