Class ScriptOutputTypeException

  • All Implemented Interfaces:
    Serializable

    public class ScriptOutputTypeException
    extends DRException
    Exception that indicates a script attempted to assign a value of the wrong type to an output field.
    See Also:
    Serialized Form
    • Constructor Detail

      • ScriptOutputTypeException

        public ScriptOutputTypeException​(String fieldName,
                                         TokenType fieldType,
                                         ClassCastException cause)
        Constructs an exception indicating that a script attempted to assign a value of the wrong type to the specified output field.
        Parameters:
        fieldName - Name of the output field
        fieldType - Type of the output field
        cause - ClassCastException which caused this exception
    • Method Detail

      • getFieldName

        public String getFieldName()
        Retrieves the field to which a value of the wrong type was assigned.
        Returns:
        Field name
      • getFieldType

        public TokenType getFieldType()
        Retrieves the type of the field to which a value of the wrong type was assigned.
        Returns:
        Field type