function error(type) {
	throw new RangeError(errors[type]);
}
A generic error utility function.
@private
@param {String} type The error type.
@returns {Error} Throws a `RangeError` with the applicable error message.