Use std::error_code in error handler
The error_handler virtual implementation methods have been renamed to do_warning and do_error, and made private. Non virtual public interface methods warning and error have been added.
Updates to docs