use attr_writer instead of error_mode= method
Merge pull request #354 from Dillon-Benson/patch-3

use attr_writer instead of error_mode= method