 		else 
 			err = new Error
 			err.message = 'Invalid element type: #{dataType}'
+			throw err
 
 
 

			else
				err = new Error
				err.message = "The clipping mode #{config.clip} is invalid."

    # Get input array value at i, applying the clipping method
	getClippedInput: (i) ->

		else
			err = new Error
			err.message = "The interpolation method #{config.method} is invalid."
			throw err

	#Make sure there's at least one element in the input array
	if not arr.length
		err = new Error
		err.message = 'Array must have at least one element.'
		throw err

	#See what type of data we're dealing with
	dataType = Object.prototype.toString.call arr[0]
