- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.pervasive.datarush.exceptions.DRException
-
- com.pervasive.datarush.types.FieldTypeNotSupportedException
-
- All Implemented Interfaces:
Serializable
public class FieldTypeNotSupportedException extends DRException
Unchecked exception thrown to indicate a field in a record schema is of an invalid type for a given context.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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FieldTypeNotSupportedException(GraphPath field, TokenType type)
Constructs aFieldTypeNotSupportedException
indicating the type and path of the field in error.FieldTypeNotSupportedException(String field, TokenType type)
Constructs aFieldTypeNotSupportedException
indicating the type and name of the field in error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FieldTypeNotSupportedException
public FieldTypeNotSupportedException(String field, TokenType type)
Constructs aFieldTypeNotSupportedException
indicating the type and name of the field in error.- Parameters:
field
- the name of the field in errortype
- the type of the field in error
-
FieldTypeNotSupportedException
public FieldTypeNotSupportedException(GraphPath field, TokenType type)
Constructs aFieldTypeNotSupportedException
indicating the type and path of the field in error. This form should be used to identify a field within a nested schema.- Parameters:
field
- the path of the field in errortype
- the type of the field in error
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getField
public GraphPath getField()
Gets the path of the field which caused the error.See
Field
for information about paths.- Returns:
- the path of the field.
-
getFieldType
public TokenType getFieldType()
Gets the type of the field which caused the error.- Returns:
- the type of the field
-
-