def raise_type_error(key, type)
      raise_error(type: "type", key: key, supposed: type, found: key.class)
    end
def raise_type_error(key, type)
      raise_error(type: "type", key: key, supposed: type, found: key.class)
    end
Raises a type error with a generic message.
 @param [Object] key the key associated from the value triggering the error.
 @param [Class]  type the expected type, not respected by the initial value.
 @raise [ArgumentError] the chosen type error.