Revert "deprecate :error_class option"

This reverts commit e3a0393241f6b3befff836daf1ffb0dc0c576665.