public class FieldTypeNotSupportedException extends DRException
Many operators which accept record types place constraints on the schema,
typically constraining them to be flat (that is, not nested) or have fields
of homogeneous type. This exception will generally be seen as the cause of a
TypeNotSupportedException
raised by such an operator.
Constructor and Description |
---|
FieldTypeNotSupportedException(GraphPath field,
TokenType type)
Constructs a
FieldTypeNotSupportedException indicating the
type and path of the field in error. |
FieldTypeNotSupportedException(String field,
TokenType type)
Constructs a
FieldTypeNotSupportedException indicating the
type and name of the field in error. |
Modifier and Type | Method and Description |
---|---|
GraphPath |
getField()
Gets the path of the field which caused the error.
|
TokenType |
getFieldType()
Gets the type of the field which caused the error.
|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FieldTypeNotSupportedException(String field, TokenType type)
FieldTypeNotSupportedException
indicating the
type and name of the field in error.field
- the name of the field in errortype
- the type of the field in errorpublic FieldTypeNotSupportedException(GraphPath field, TokenType type)
FieldTypeNotSupportedException
indicating the
type and path of the field in error. This form should be used to identify
a field within a nested schema.field
- the path of the field in errortype
- the type of the field in errorpublic String getMessage()
getMessage
in class Throwable
public GraphPath getField()
See Field
for information about paths.
public TokenType getFieldType()
Copyright © 2016 Actian Corporation. All rights reserved.