use attr_writer :error_mode instead of error_mode= method